Sunday, December 28, 2008

HTML Tags Quick List

<HTML> </HTML>


Every html file should start with a html tag and end with a closing html tag. It specifies that the given document is a html file.



<HEAD> </HEAD>


It defines various heading related portions of a web page. This tag consists of various other tags like title and script.



<TITLE> </TITLE>


It is used to assign a title to the page, which appears on the title bar at the top of the browser. This tag is placed between the head tag.



<BODY> </BODY>


It indicates that all the portons within the tag are to be displayed in the document section of the website.



<FRAMESET> </FRAMESET>


This tag is used when we want to create frames within the web page.



<FRAME> </FRAME>


To create a new frame in current frameset. Always within the frrameset tag.



<SCRIPT> </SCRIPT>


If we want to use scripting within the web page, the scipt is written within the script tag. It can appear anywhere in the document.



Out of the above tags HTML, HEAD, BODY, FRAMESET are the most important tags in a web page which defines various portions of a web page. Out of these either BODY or FRAMESET only one can be present in a web page at a time. None of the page can have both the tags together.
These tags are organised in following manner:-





<HTML>
<HEAD> heading portion </HEAD>

<BODY> body portion </BODY>
or
<FRAMESET> frames declaration </FRAMESET>
</HTML>





<B> </B>


It bolds the text.



<I> </I>


It italics the text.



<U> </U>


It underlines the text.



<SUP> </SUP>


Text is considered as superscript.



<SUB> </SUB>


Text is considered as subscript.



<TT> </TT>


Used to write text in teletype.



<FONT> </FONT>


To change the font size or the font colour of the text tis tag is used.



<PRE> </PRE>


Text is assumed to be prefrmatted and no formatting is applied or removed. It is displayed as it is without removing any spaces and line breaks.






<Hn> </Hn> --n replaced with a number between 1-7


To create a heading in the file we use H tag followed with a number n which ranges from 1 to 7. 1 means the largest and 7 the smallest,i.e. H1 to H7 refers to the heading tag in HTML.



<BR>


To give a line break. Just like hitting an Enter Key Once.



<HR>


To draw a Horizontal Rule(Horizontal Line).



<IMG>


To draw an image at the current location



<A> </A>


Creates a hyperlink Reference to a web location or to a directory location or to an email reference.






<TABLE> </TABLE>


To draw a table in the web page.



<TH> </TH>


To assign a Heading to the table column.



<TR> </TR>


To create a new row in the table.



<TD> </TD>


To create a new cell in the current row of current table.



<DIV> </DIV>


Div is used to create divisions in the body. It gives the functionality similar to frameset but look greatly enhanced as compared to frameset.






<FORM> </FORM>


To design a form in the web page this tag is used and all the controls are drawn within the tag.



<INPUT>


To create a control on the web site input tag is used with different control types.



Please leave a lot of comment to promote such future activities



Visit www.freewebs.com/durgeshindia/ for more details

0 responses:

Corprova | Saroj Hydraulics | AlphaNumeric | durgeshindia