Pages

Darren Aronofsky: Future Projects

After directing Oscar winning Black Swan if you want to know what the next Kubrick has in store for you then you might like to browse the list below :

1)Machine Men (2012)
Genre: Sci-Fi / Thriller

2)Jackie (2013)
Genre: Drama
Starring: Rachel Weisz

3)The Tiger (2013)
Genre: Drama
Starring: Brad Pitt




TEGRA2:World's first mobile dual core CPU

In order to tap the huge potential in mobile gadgets such as tablets ,smartphones etc. NVIDIA has launched world's first mobile super chip NVIDIA Tegra 2.
It is the first mobile dual-core CPU.

Features:
Dual-core ARM Cortex-A9 CPU
Ultra-low power (ULP) GeForce GPU
1080p Video Playback Processor

Top benchmark tests for your graphics card

Benchmark tests for your graphics/video card help you in better understanding of relative performance of 3D graphic rendering and all other such features of your graphic card.
So if you want to check the gaming performance of your graphic card you can use one of these benchmarks.

1)3DMARK11
Developed by Futuremark Corporation it is the most preferred tool for benchmark.

2)Heaven DX11
Heaven Benchmark is a DirectX 11 GPU benchmark based on advanced Unigine engine from Unigine Corp.

Google Translate Code

Looking for Google Translate Code so that readers from throughout the world can access and comprehend your content. Just copy paste the code and use it on your website/blog.

<div id="google_translate_element"></div>
<script>function googleTranslateElementInit() {  new google.translate.TranslateElement({    pageLanguage: 'en',    layout: google.translate.TranslateElement.InlineLayout.SIMPLE  }, 'google_translate_element');}</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

Top unlimited broadband plans in bangalore

Recently most of te telecom operators have applied a fair usage policy to most of their broadband plans and it has become hard to find a truly unlimited broadband plan that gives you total freedom and ease to download as much as you want. I have compiled a current list of unlimited broadband plans of good quality that may help you to choose one of the appropriate plans for yourself.

1) Airtel

Now the great thing about Airtel is that the installation charges are only Rs 500 and not only the device they give is useful for broadband but also making and receiving calls.The customer service is good and the broadband installation will take just few days.

The unlimited plan they are offering is :
Impatience 1699- Airtel/KK FL/02-
This is the unlimited plan that offers speed of 2 Mbps.To get this connection you will have to pay a monthly rental of Rs 1699.



 2) Reliance

Reliance is offering two major unlimited plans that are:

Night Booster Zoom 1

This plan offers speed of 1 Mbps during the day while speed of 2 Mbps during the night.To avail this connection you'll hvae to shell out Rs 1499 per month.


Zoom 2

This plan offers speed of 2 Mbps and the monthly rental is Rs 2499.

Installation charges are same as Airtel i.e Rs 500.



3) Hathway

Hathway is also offering two major unlimited plans that are:

Happyway 1 Mbps Unltd-postpaid

This plan offers speed of 1 Mbps and you'll have to pay rs 1049 per month.

New Happy Way512Regular

This plan offers speed of 512 kbps and the cost is Rs 524 per month. Installations charges are Rs 500.




4) BSNL

 BSNL broadband surely offers one of the best broaband connections but if you don't have their landline it can be a real hassle to get their landline as well as the broadband connection installed.Besides you'll have to pay hefty amount of security for the devices.


The unlimited plan they are offering is :

BB Home Combo UL 750

This plan offers the speed of 512 kbps and the cost is Rs 750 per month.


These are the truly unlimited broadband plans that I could complie if you have any other good suggestions they are most welcome.

Memories of Murder(Salinui chueok) 2003


 Memories of murder is a Korean masterpiece with unique and engaging direction by Joon-ho Bong. I have always loved Korean movies for their originality , wittiness and simplicity.Koreans have a style of their own.

Memories of Murder is a slow yet engaging thriller which will make you laugh and ponder at the same time about the characters as well ass the story.

You fall in love with the characters and go through the emotional swings of loving and hating them. Memories of murder not only portrays the violence and the anxiety of detectives to catch the killer but also an unlasting quest to know the truth and solve the mystery.


 Movie will initiate you , interest you ,make you inquisitive but will keep you hungry for truth and revelation till the end. I loved the way movie has been paced.

It plays different notes at different times but the overall effect of it is transcendental and satisfying. If you can watch what needs to be seen it's more than recommended. Rather it is an example of how great movies are accomplished with simplicity and brilliance.

Watch videos  Memories of Murder (2003)
Video1
Video2

CSS : Applying CSS to your web page

Now we will create a column to improve the readability as well as the look of our page .For this we write code in CSS as :


          #welcome {
             float: left;
             width: 275px;
             padding: 0 100px 50px 35px ;
           }


This also aligns the "reviews" division to the right of "welcome" division .Though this only happens because other divisions try to wrap around "welcome" division once we declare it as float: left; . 50px provides padding in the bottom .

        
To align the top of "reviews" with the top of "welcome" division .

          #reviews {
               margin-top: 0.5em ;
               padding: 0 0 50px 0 ;
             }




We are basically creating a column aligned to the left of page of width 275px . We provide padding horizontally to avoid two columns i.e. "welcome" and "reviews" from overlapping each other .

We can also create a custom sized box underneath the heading "Welcome to Movies Freak!" with the text wrapping around it .

     

       <div id="welcome">
         
           <h1>Welcome to Movies Freak!</h1>
         
           <div id="floatbox">Hi! Wecome to movies freak .</div>



CSS for the box :

        #floatbox {
          
            float: left;
          
            width: 60px;
          
            height: 75px;
          
            padding: 10px;
          
            background-color: #FFAABB;
          
            margin-right: 1em;
          
            margin-top: 0.5em
         
           }



margin-right and margin-top settings are adjusted to align the box with the text as well as avoid overlapping .


#reviews {margin-top: 0.5em ;}


Till now our footer looks just like a part of the "reviews" division .So , to differentiate it :


        #footer {
          clear: both;
          text-align: center;
          border-top: 1px solid;
         }


clear:both - This places the footer below our specified column ."both" ensures no matter of what height our divisions "welcome" and "reviews" are , the footer is always placed below both the divisions .

Text align places all the text in the footer in the middle of the page .border-top differentiates between the footer and the divisions by creating a 1px thick line at the top of the footer .

CSS : Applying CSS to your web page

CSS Pseudo Classes


You must have seen in certain websites that as you move your cursor from one link go the other , the color of the link at which you are hovering changes or a pointer points to that link . This effect is achieved as :

        #nav1 a:hover {
         
           background: url(images/b.gif) no-repeat left center;
         
           color: #118877;
        
          }


So, as you hover over a particular link , the icon b.gif points to that link and the color changes to #118877 .
:hover is called a dynamic pseudo-class as it changes properties of objects in real time .


Another way to differentiate between current link that user is viewing and the other links is to place a cursor over the current link :


#nav1 .icon a, #nav1 .icon a:hover, #nav1 .icon a:active {
          background: url(images/b.gif) no-repeat left center;
          color: #FFF;
          cursor: default;
        }





Let's add some of the links to our web pages within the division "welcome" as :



        <div id="welcome">
           <h1>Welcome to Movies Freak!</h1>
           <p>We are a group of movies freak who watch some insane number of movies round the clock .If you are new to our blog the begin from
              <a href="index.html">Home</a> . This is the list of our <a href="recently-reviewed.html">Latest</a> reviewed movies . These are the
              <a href="highly-recommended.html">Greatest</a> movies we have ever reviewed . We'll review each and every movie for you so that you
              can find out which one is for you to watch .Know more<a href="about.html">About Us</a> here .</p>
        </div>


How can a user know which of these pages he has already visited and which he's yet to visit ? Styling schemes are used for this purpose .

        <style type="text/css">
         html, body {
                margin: 0;
                padding: 0;
                border: none;
                background: white;
              }
          body {
             color: #800080;
             font-family:"Times New Roman", sans-serif,Verdana;
             font-size: 75%;
           }
        a:link {
           color: #112233;
           }
        a:visited {
           color: #223344;
           }
        a:hover {
           color: #334455;
           }
        a:active {
           color: #556677;
          }


a:visited - dynamic pseudo class for links already visited .Color changes to #223344 .

a:active - link at which we are currently positioned .Color changes to #556677 .

CSS : Applying CSS to your web page

Pointing to current page


To point to the page that the user is currently accessing we take any small icon image and place it in images folder with the name b.jpg .To state at which list element should the icon be placed we create a class "icon" set by default at the home page .



         <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul id="nav1">
              <li class="icon"><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>


Adding background image of the icon to the selected list :


        #nav1 a {
          color: #800080;
          font: bold 1em  Verdana, sans-serif;
          display: block;
          padding: 35px 0 35px 0;
         }

       #nav1 .icon a {
           background: url(images/b.jpg) no-repeat left center;
           }



In case this overlaps with the list element provide  padding to the list :

e.g.

        #nav1 a {
          color: #800080;
          font: bold 1em  Verdana, sans-serif;
          display: block;
          padding: 35px 0 35px 0;
         }


provide padding :

         #nav1 a {
          color: #800080;
          font: bold 1em  Verdana, sans-serif;
          display: block;
          padding: 35px 0 35px 20px;
         }


CSS : Applying CSS to your web page

Now to position the <ul> list inside the <h2> element to the right of the image :

          #header ul {
               position: absolute;
               top: 0;
               right: 0;
              }


position: absolute - This deactivates the CSS block box created by the <ul> tag .Setting zero value for top and right attributes moves the list to the top right corner of the browser window or the viewport .

Now, we will style the lists .So , we'll be assigning an id to each of the navigation lists .

e.g.
  
       <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul id="nav1">
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>


<ul id="nav1">
- Here we have provided an id with the name "nav1" for the <ul> list .This will make accessing the list as well as specifying its properties easier .Now we can use CSS selector #nav1 instead of #header ul .


Add these CSS rules to overcome any default values set for <ul> by the browser .

       #nav1 {
          position: absolute;
          top: 0;
          right: 0;
          margin: 0;
          padding: 0;
        }




If you want to remove any markers from the list i.e. bullets or numbers , use statement :

      list-style-type: none;


So , CSS becomes :


        #nav1 {
          position: absolute;
          top: 0;
          right: 0;
          margin: 0;
          padding: 0;
          list-style-type: none;
         }



To style the list elements we set their properties as :

        #nav1 a {
          color: #800080;
          font: bold 1em  Verdana, sans-serif;
         }



CSS now is :


         #nav1 {
          position: absolute;
          top: 0;
          right: 0;
          margin: 0;
          padding: 0;
          list-style-type: none;
         }


         #nav1 a {
          color: #800080;
          font: bold 1em  Verdana, sans-serif;
         }



Since our image is much greater in height than our list we provide padding between the list elements .

         #nav1 a {
          color: #800080;
          font: bold 1em  Verdana, sans-serif;
          display: block;
          padding: 35px 0 35px 0;
         }


display: block - By default list elements are inline boxes . This turns them to block boxes .
padding: 35px 0 35px 0 - This provides spacing of 35px between list elements vertically .

CSS : Applying CSS to your web page

To add a background image to the header add a folder named images inside Movies Freak folder and name the image a.jpg if it is a jpeg file .


          
       <style type="text/css">
         html, body {
                margin: 0;
                padding: 0;
                border: none;
                background: white;
              }
          body {
             color: #800080;
             font-family:"Times New Roman", sans-serif,Verdana;
             font-size: 75%;
           }
          #header h2{
             background-image: url(images/a.jpg)
             background-repeat: no-repeat;
             background-position: right top;
             height: 280px;
            }
      </style>

Tweak or edit the image so that it occupies the whole viewport . Set horizontal dimension to about 920px. We will place the list inside h2 to the right of the image later .Since , by default any image added to html is tiled vertically as well as horizontally . To avoid repetition we use statement

    
            background-repeat: no-repeat;

background-position
- It specifies the position of the image relative to the CSS box .left , bottom and center are other keywords that are used to specify the position of the image .

height - Specifies height of the image .


In this case our h2 title "Movies Freak" is overlapping over the image .
     
          <h2><a href="index.html">Movies Freak</a> </h2>



In order to remove this heading from the picture .

        #header h2{
             background-image: url(images/a.jpg)
             background-repeat: no-repeat;
             background-position: right top;
             height: 280px;
             text-indent: -999px;
             margin: 1em;
             }


By setting a large negative value for text-indent property we move the title beyond the top left portion of the viewport .

 


 
         #header h2{
             background-image: url(images/a.jpg)
             background-repeat: no-repeat;
             background-position: right top;
             height: 280px;
             text-indent: -999px;
             margin-right: 1em;
            }
         #header h2 a {
                 display: block;
                 width: 800px;
                 height: 100%;
               }
       </style>




#header h2 a
- <a> element is contained inside <h2> element . Width is set as same to the width of the image used . This helps in using the image as a link to the home page .

CSS : Applying CSS to your web page

This is the web page we created in our XHTML tutorials :



      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>Movies Freak</title>
      </head>
      <body>
        <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>
        <div id="welcome">
           <h1>Welcome to Movies Freak!</h1>
           <p>We are a group of movies freak who watch some insane number of movies round the clock .
              We'll review each and every movie for you so that you can find out which one is for you to watch .</p>
        </div>
        <div id="reviews">
            <h2>Weekly Specials</h2>
               <ul>
                 <li>Memento</li>
                 <li>The Dark Knight</li>
                 <li>Avatar</li>
                 <li>The Last Samurai</li>
                 <li>Blade Runner</li>
              </ul>
        </div>
        <div id="footer">
           <p>Copyright 2010 Movies Freak , All rights reserved.</p>
        </div>
        </body>
      </html>

Embed the style attribute in the <head> element as :


        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>Movies Freak</title>
            <style type="text/css">
               /* CSS rules */
            </style>
        </head>




Embed these CSS rules within the style element

        html, body {
        margin: 0;
        padding: 0;
        border: none;
        background: white;
       }



as :


      <style type="text/css">
         html, body {
                margin: 0;
                padding: 0;
                border: none;
                background: white;
              }
      </style>



These CSS rules are used to override browser defaults and implement yours .Every time you change CSS code in the HTML file ,
save your file and reload it to see the changes .


Add :

          body {
             color: #800080;
           }

to



       <style type="text/css">
         html, body {
                margin: 0;
                padding: 0;
                border: none;
                background: white;
              }
         body {
             color: #800080;
           }
       </style>



#800080
is the color code of purple color .This turns all the text in the body part of html file to blue .This is a hexadecimal notation .

80-hexadecimal value of red .
00-hexadecimal value of green .
80-hexadecimal value of blue .


Applying font-type to the text in body

     body {
             color: #800080;
             font-family:"Times New Roman", sans-serif,Verdana;
          }


The browser tries to implement first Times New Roman ,if this font-type is not available with user system then sans-serif  and at last Verdana .Times New Roman is double quoted as it consists of spaces .




      body {
             color: #800080;
             font-family:"Times New Roman", sans-serif,Verdana;
             font-size: 75%;
           }


line-height - This property provides space between two consecutive lines .e.g. if you want a distance of half the length of the inline box consisting your line , then ,


       line-height: 150%;


font property - All properties that apply to text can be specified in this property such as font-size , font-family font-style, font-variant, font-weight, and line-height .


These two CSS rules are similar .

          h2 {
              font: italic small-caps bold larger/150% Zapfino, cursive;
             }
          h2 {
              font-style: italic;
              font-variant: small-caps;
              font-weight: bold;
              font-size: larger;
              line-height: 150%;

              font-family: Zapfino, cursive;
             }

CSS box model

A web page is nothing but a group of boxes .

Block boxes - These are rectangular boxes that exist as one over the other according to the order of priority .Block-level boxes are as wide as their CSS box permits them . So, they are usually as wide asthe browser window . e.g. <p> <ul> <ol> etc. are contained in block boxes .e.g. <div> elements , list elememts : <ul>, <ol>, and <dl> .


Inline boxes - They flow one after the other horizontally . They are only as wide as their content needs to be and donot stretch beyond that .Most of text is wrapped within these boxes .e.g. images, links , text .


CSS box properties

width
- This determines width of the content area . Suppose you want to set width of the header .This property doesn't applies to inline boxes .


                 #header { width: 250px; }

padding - Padding is the whitespace between content and the edges . e.g.



               #header { width: 250px;
                         padding: 10px;
                       }

       
This applies padding to all four sides and our CSS box is now 270 px wide .


To apply different extent of padding to different directions :


             padding-top: 5px;
             padding-right: 10px;
             padding-bottom: 5px;
             padding-left: 10px;

In case we apply padding to a block box the surrounding text moves further away to accomodate it . In case of inline box the horizontally adjacent content recedes away but the vertically adjacent content may be overlapped .


border
- It's the area consisting of the edges of the box .It sets a border width, style, and color for all four
sides of a box.


             #header { width: 250px;
                       padding: 10px;
                       border: 1px solid black;
                      }

e.g.

             border-width-top: 1px;
             border-style-top: solid;
             border-color-top: black;



margin - Whitespace around the box . It pushes any content around the box further away .

e.g.

                 h1, p, ul, ol, { margin: 0 1em ; }


0(0 is not followed by any units )- First value by default applies to the top and bottom of the margin .

1em
- This value applies to left and right margins .

So,

         margin: 0 1em ;


expands to :

        margin-top: 1em;
        margin-right: 0;
        margin-bottom: 1em;
        margin-left: 0;


em - It is the length of element’s current font’s lowercase letter m . This is a relative length unit as the size of em depends on the size of font used .

e.g,

        <div id="footer">
           <p>Copyright 2010 Movies Freak , All rights reserved.</p>
        </div>



      #footer {
      width: 250px;
      padding: 10px;
      border: 1px solid black;
      margin: 0 auto;
     }


Use of auto value in this case puts the footer in the center of the browser window .This happens as left and right margins adjust to occupy equal horizontal space .

CSS TUTORIALS - CSS cascade

A combination of different selectors and combinators can be used for attaining specific select patterns .e.g If we have page full of anchor elements nested inside unordered lists and we want to style only those within the division with id as 'header' .
                  
           <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>




        #header ul a {
                         color: red;
                         text-decoration: underline;
                     }


CSS rules can be over-ridden by specifying another rule after it . e.g. referring to our previous example :


        <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>



CSS Rule 1:        

           #header {
             font-weight: bolder;
             font-family: times, serif;
            }


This would style all the elements .But if we want to style the list items differently , we provide a new CSS rule .


CSS Rule 2:

           #header ul {
                        font-weight: bold;
                        font-family: Zapfino, serif ;
                      }


This rule overrides the previous CSS Rule .We say CSS Rule 2 "cascades" over the top of CSS Rule 1 .

CSS cascade is a set of rules that define how conflicts among different CSS declarations are resolved .Specific rules override more general rules .Factors that determine cascade are where it was written in the CSS file as well as specificity of the CSS selector .e.g. selector with multiple combinators will be more specific .

Type selector is more general than class selector which in turn is more general than ID selector. So , is CSS rules are specified for all three .CSS for ID selector will cascade over CSS for class selector which in turn cascades over type selector .


Source order cascading  - In case we want the style of a particular element to be over-ridden by the one defined in the CSS file , we use embedded form of styling
i.e.

         <div class="movie" id="1">
            <h1>Akira</h1>
            <p>This movie is trash . Please don't waste your time on this .</p>
         </div>
         <div class="movie" id="2">
            <h1>Grave Of The Fireflies</h1>
            <p>Awesome , Superb ,Riveting</p>
         </div>






           <head>
             <title>Movies Freak</title>
             <link rel="stylesheet" href="basic.css" type="text/css" />
             <style type="text/css">
                  .movie{color:green ; }
             </style>
           </head>



In this case

         <style type="text/css">
                  .feature { color:green ; }
          </style>


will over-ride the styling of specified section i.e. class type "movie" over


      
           link rel="stylesheet" href="basic.css" type="text/css" />



Another way of  source order cascading is to specify another CSS file after the initial one . CSS file specified later will over-ride the previous one .

           <head>
             <title>Movies Freak</title>
             <link rel="stylesheet" href="basic.css" type="text/css" />
             <link rel="stylesheet" href="advanced.css" type="text/css" />
           </head>

In this case

        <link rel="stylesheet" href="advanced.css" type="text/css" />

will over-ride

     
       <link rel="stylesheet" href="advanced.css" type="text/css" />

CSS TUTORIALS - CSS selectors

CSS selectors - There are different ways to specify selectors . They help in providing greater precision or styling different  sets of same elements in different ways .


Referring back to XHTML tutorials .

           <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>




ID selectors - id attribute is used to identify the element to be styled .

e.g. the above code section can be styled as :


            #header {
             font-weight: bolder;
             font-family: times, serif;
            }


ID selectors always begin with a (#) . The header as well as all the links are styled in the specified way . This is also known as inheritance as the CSS is apllied to the parent element (<div> in this case ) but all the child elements (<h2> , <ul>,<li>,<a>) inherit this way of presentation .



Class selectors - Class attribute is used to identify the element to be styled .

e.g. suppose we have markup

         <div class="movie" id="1">
            <h1>Akira</h1>
            <p>This movie is trash . Please don't waste your time on this .</p>
         </div>
         <div class="movie" id="2">
            <h1>Grave Of The Fireflies</h1>
            <p>Awesome , Superb ,Riveting</p>
         </div>

Using class selector


           .movie {
              width: 300px;
              height: 250px;
              padding: 15px;
              margin-right: 10px;
              margin-bottom: 10px;
              float: left;
             }




Class selectors always begin with a (.)

This will create two different boxes , one-next to the other of dimensions 300 by 250 pixels .

padding-specifies space between content and the border of the element .

margin-right -space left empty to the right of the box .

margin-bottom - space left empty to the bottom of the box .

float: left -aligns box to the top left of the page .


Descendant selectors - They are used in case one element is nested within another element .


e.g.
         
                   ul a {
                         color: red;
                         text-decoration: underline;
                        }


All anchor elements nested inside an unordered list will be underlined and colored red .In this case an empty space is the combinator of ul and a elements .

CSS TUTORIALS - How to use CSS

There are three ways of applying CSS to your web pages .


Inline style - This form of style is written directly into the element .style attribute is used inside the element for this purose .

e.g.

<p style="color: green;">Hey , You ! . Where art thou ?</p>


This style is not preferred for practical purposes as it lacks flexibility . Though , it is used for testing purposes as to check the effects of different styles on an element .




Embedded style  - CSS is embedded within the html document .CSS code is placed inside the <head> element of the file . <style> element is used for this purpose with text/css type .

Using the example from XHTML tutorials


                  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
                    <head>
                      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
                      <title>Movies Freak</title>
                      <style type="text/css">
                         /* CSS Code */
                     </style>
                    </head>
                    <body>
                    </body>
                  </html>

Though the CSS rules in this case are applicable only on the single page in which this code is embedded .



External style sheets - In this case a single style sheet defines the presentation of large number of pages .Separate file is used to define the CSS rules . <link> element is used to reference the pages .

If you did create a folder with the name of Movie Freak and placed all files of xhtml tutorials in it ,then , create a new notepad file and rename it learn.css .
To access this file :

            <link rel="stylesheet" href="basic.css" type="text/css" />


rel - relationship . This specifies that the link points to a CSS file .You'll have to specify the relative path if the CSS file is in any other folder .


We created this unordered list of links in our XHTML tutorials .         

           <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>



To style them :


           ul a {
               color: green;
               font-size: larger;
            }


ul a - Selects anchor elements <a> specified inside an unordered list .

CSS TUTORIALS - An Introduction

CSS refers to Cascading Style Sheets.CSS is used to control visual presentation of content in a web page .


               a:link {
                 color: red;
                 text-decoration: underline;
               }
               p {
                   margin-top: 30px;
                   margin-bottom: 30px;
                 }


selector

a:link - This is the selector part of CSS .It accesses all links in xhtml file . Multiple selectors can be used separating each with a comma(,) .
e.g
           
              a:link,h2,h3 {
                           }



Declaration block

              color: red;
              text-decoration: underline;


color -property
red - value

Property and value are separated by colon (:) .

color: red;
- gives red color to all links .

text-decoration: underline;-underlines the links text .


p-refers to the paragraph part of xhtml file .

margin-top: 30px;-a space of 30 pixel is left empty above the paragraph .

margin-bottom: 30px-a space of 30 pixel is left empty paragraph .


Complete list of CSS TUTORIALS:

Learn to use CSS
How to use CSS selectors
Learning CSS Cascade
What is CSS box model ?
Learn to apply CSS to your web page
Apply CSS on your sample web page
Apply CSS to your web page : PartIII
Apply CSS to your web page: Part IV
Apply CSS to your web page: Part V 
Apply CSS to your web page: Part VI




Create a webpage

We'll create a complete web page from scratch using HTML and our recently acquired knowledge about various elements used in HTML . Create a folder on your desktop with the name Movies Freak and add a new notepad file to it .Rename this file to index.html . index.html signifies the home page of your website .



          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
          <head>
            <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
            <title>Movies Freak</title>
          </head>
          <body>
          </body>
          </html>



Now divide your page into different sections . Define each section with a <div> .Assign an id to
each division to uniquely identify it .

e.g.

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>Movies Freak</title>
      </head>
      <body>
        <div id="header">
        </div>
        <div id="welcome">
        </div>
        <div id="reviews">
        </div>
        <div id="footer">
        </div>
        </body>
      </html>



Adding content to the footer


      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>Movies Freak</title>
      </head>
      <body>
        <div id="header">
        </div>
        <div id="welcome">
        </div>
        <div id="reviews">
        </div>
        <div id="footer">
           <p>Copyright 2010 Movies Freak , All rights reserved.</p>
        </div>
        </body>
      </html>



Adding links to the header


      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>Movies Freak</title>
      </head>
      <body>
        <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>
        <div id="welcome">
        </div>
        <div id="reviews">
        </div>
        <div id="footer">
           <p>Copyright 2010 Movies Freak , All rights reserved.</p>
        </div>
        </body>
      </html>



Adding text to our page .


        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>Movies Freak</title>
      </head>
      <body>
        <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>
        <div id="welcome">
           <h1>Welcome to Movies Freak!</h1>
           <p>We are a group of movies freak who watch some insane number of movies round the clock .
              We'll review each and every movie for you so that you can find out which one is for you to watch .</p>
        </div>
        <div id="reviews">
        </div>
        <div id="footer">
           <p>Copyright 2010 Movies Freak , All rights reserved.</p>
        </div>
        </body>
      </html>





Adding This Week Reviews



            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>Movies Freak</title>
      </head>
      <body>
        <div id="header">
           <h2><a href="index.html">Movies Freak</a> </h2>
           <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="recently-reviewed.html">Latest</a></li>
              <li><a href="highly-recommended.html">Greatest</a></li>
              <li><a href="about.html">About Us</a></li>
           </ul>
        </div>
        <div id="welcome">
           <h1>Welcome to Movies Freak!</h1>
           <p>We are a group of movies freak who watch some insane number of movies round the clock .
              We'll review each and every movie for you so that you can find out which one is for you to watch .</p>
        </div>
        <div id="reviews">
            <h2>Weekly Specials</h2>
               <ul>
                 <li>Memento</li>
                 <li>The Dark Knight</li>
                 <li>Avatar</li>
                 <li>The Last Samurai</li>
                 <li>Blade Runner</li>
              </ul>
        </div>
        <div id="footer">
           <p>Copyright 2010 Movies Freak , All rights reserved.</p>
        </div>
        </body>
      </html>



You can check if your markup is correct by inputting your markup on http://validator.w3.org .

HTML Help & Templates - Learn HTML tags including form, frames, and tables with help from this free reference.

HTML Forms

Forms are used in HTML to let the user enter data and to specify the form of data to be input . User can provide different types of information such as his name , contact number , email Id through the contact form .

<form>-They are used to obtain information from the visitors.

action attribute - It specifies the URL where the script that processes the form data can be found.

e.g.

     <form action="/location/of/script">



<fieldset> - It defines a set of related form fields .
<legend> - This gives <fieldset> element a name that is visible to web page visitors .

e.g.

         <form action="/location/of/script">
           <fieldset>
             <legend>Ohh You</legend>
           </fieldset>
         </form>




<input>
- specifies the input type desired from the user .<input> elements can be text fields, check boxes, radio buttons etc.


e.g.


        <form action="/location/of/script">
           <fieldset>
             <legend>Contact Details</legend>
             <input type="text" name="Phone No." />
           </fieldset>
         </form>




<label> - Text uniquely associated with an input field .


<input type="text" name="Phone" id="phone_field" />

We use id to uniquely identify this input field .

e.g.

<label for="phone_field">Phone Number</label>
<input type="text" name="Phone" id="phone_field" />


Checkbox - It receives a “yes or no” input from the user .



e.g.
           <form action="/location/of/script">
           <fieldset>
             <legend>Contact Details</legend>
             <label for="phone_field">Phone Number</label>
             <input type="text" name="Phone" id="phone_field" />
             <input type="checkbox" name="permanent" id="permanent_field" value="1" />
             <label for="permanent_field">This is my permenent number.</label>
           </fieldset>
         </form>

If we want the checkbox to be already checked then :    

<input type="checkbox" name="permanent"id="permanent_field"value="1"checked="checked" />



Lists are used to show a number of such inputs from the user in a single form .


             

         <form action="/location/of/script">
           <fieldset>
             <legend>Contact Details</legend>
                <ol>
                   <li>   
                     <label for="phone_field">Phone Number</label>
                     <input type="text" name="Phone" id="phone_field" />
                   </li>
                     <li>
                     <input type="checkbox" name="permanent" id="permanent_field" value="1" />
                     <label for="permanent_field">This is my permenent number.</label>
                     </li>
                </ol>
          </fieldset>
         </form>

    

Radio button - User can select only one out of multiple options .



          <form action="/location/of/script">
           <fieldset>
             <legend>Contact Details</legend>
                <ol>
                   <li>   
                     <label for="phone_field">Phone Number</label>
                     <input type="text" name="Phone" id="phone_field" />
                   </li>
                     <li>
                     <input type="checkbox" name="permanent" id="permanent_field" value="1" checked="checked"/>
                     <label for="permanent_field">This is my permenent number.</label>
                     </li>
                   <li>Which is your favorite movie?
                     <ul>
                       <li>
                         <input type="radio" name="favorite_movie" id="favorite_movie_memento" value="Memento" />
                         <label for="favorite_movie_memento">Memento</label>
                       </li>
                       <li>
                         <input type="radio" name="favorite_movie" id="favorite_movie_the_dark_knight" value="The Dark Knight" />
                         <label for="favorite_movie_the_dark_knight">The Dark Knight</label>
                       </li>
                       <li>
                         <input type="radio" name="favorite_movie" id="favorite_movie_the_fountain" value="The Fountain" />
                         <label for="favorite_movie_the_fountain">The Fountain</label>
                       </li>
                    </ul>
                  </li>
               </ol>
          </fieldset>
         </form>



Drop-down list
- In case the user has large number of options to choose from a drop-down list is used .

e.g.

         <label for="movie_type_field">Movie Type</label>
         <select name="movie_type" id="movie_type_field">
            <option>Classic</option>
            <option>History</option>
            <option>War</option>
            <option>Adventure</option>
         </select>



<optgroup> - Used to group the options .



        <label for="movie_type_field">Movie Type</label>
        <select name="movie_type" id="movie_type_field">
          <optgroup label="Hollywood">
            <option>Classic</option>
            <option>History</option>
            <option>War</option>
            <option>Adventure</option>
          <optgroup label="Bollywood">
            <option>Comedy</option>
            <option>Crap</option>
          </optgroup>
        </select>



<textarea> - Helps user to enter any size of text in prescribed area .

e.g. If we want user to enter comments .


         <label for="omments_field">Comments</label>
         <textarea name="comments" id="comments_field" rows="20"cols="100"></textarea>





submit
- This is used to submit user details to the processing script .

e.g.


        <input type="submit" value="Submit this Form" />