HTML Basics
HTML is not worry about structure of tags. Even tag is properly closed or not it shows the output. But in XHTML the tags should be closed properly. HTML is not case sensitive. But Xhtml is case sensitive. It bothers about the tags case. So in xhtml all tags and attributes must be in lower case. All attributes must be within double quote. The syntax or format for give attribute is name=value. CSS can be applying in three ways. direct method (i.e., style=color:red; text-align:center) Embed method(<style type=text/css>tag{ name=value} </style>) External method(<link href=[Link] rel=stylesheet type=txt/css />)
* tag at beginning of style sheet can be used to reset the default value as we want. Especially it is used to reset default margin padding value to zero. Position tag is used to position the elements in absolute position. The tag may be position:absolute; top=n px left= n px;
Selector: Selector is nothing but other than select the element/tag you wish to apply styles. We can select elements by: *=Universal selector Type Select = individual tag , = select multiple tags Class selector= create a class, a set of styles. A class name is preceding with .. Div tag is a block level element. clear tag is used to prevent from previous float attribute and begin from a new row.