You are on page 1of 4

Basic HTML tags: <html> <head> <title> <meta> <body> <html> This tag is used to indicate that this

is a HTML document. Most HTML documents should start with <html> and end with </html> tag. <head> This tag is used to indicate the header section of the HTML document, which typically includes the <title> and <meta> tags, and is not displayed in the main window of the browser. <title> This indicates the title of this HTML page. The tile is what is displayed on the upper left corner of your browser when you view a web page. The title tag is important when it comes to search engine ranking. Many of the search engines pay special attention to the text in the <title> tag. This is because (logically) that words in the <title> tag indicate what the page content is. <meta> The <meta> tag information is not directly displayed when the page is rendered on the browser. Rather, this is used for the author of the HTML page to record information related to this page. Two common attributes are name and content. The <meta> tag used to hold great importance in search engine optimization, with authors carefully drafting whats inside the tag to gain better search engine ranking, but recently its importance has been decreasing steadily. <body> The <body> tag includes the HTML body of the document. Everything inside the <body> tag (other than those within the <script> tag) is displayed on the browser inside the main browser window. The <body> tag may contain several attributes. The most commonly used ones are listed below: bgcolor: This is the background color of the entire HTML document, and may be specified either by the color name directly or by the six-digit hex code. alink: The color of the links. vlink: The color of the visited links. topmargin: The margin from the top of the browser window. leftmargin: The margin from the left of the browser window.

So, in general, all HTML documents have the following format:

<html> <head> <title> Here is the title of the HTML document. </title> <meta name= content= /> (there may be one or more meta tags) </head> <body> Here is the body of the HTML document. </body> </html>

HTML format This section includes the tags often used for formatting the HTML text. <font> The <font> tag is used to change the format of the text on the webpage. The most important attributes are as follows. face: The type of font. Common ones include Time New Roman, Verdana, and Helvetica. size: This indicates the size of the text. This can be absolute (06), or relative(+1, +2, ... or -1, -2 ) color: This indicates the color of the text. Either the color name or the six-character color code may be used to specify color.

Example: <font size=2 face=Helvetica color=red> This illustrates the attributes of the font tag. </font>

<font size=+1 face=Verdana color=AA5088> This illustrates the attributes of the font tag. </font> <b> The <b> tag will bold the text inside the tag. <i> The <i> tag will italicize the text inside the tag. <u> The <u> tag will underline the text inside the tag.

Header Tags The header tags <h1>, <h6> allows us to place additional importance on the text within such tags. <h1> has the largest size, and <h6> the smallest. Many search engines put additional weight on the texts within the header tags. <center> The <center> tag causes all the text within the tag to be centered. <br> The <br> tag indicates a line break. This tag is most often used by itself, without a corresponding closing tag. <p> The <p> tag indicates a new paragraph. It is the same as <br><br>. This tag is most often used by itself, without a corresponding closing tag. HTML Tables This section lists the tags often used with HTML tables: <table>, <tr>, and <td>. <table>

The <HEAD> tag is used to enclose other tags which define the characteristics of an HTML page. The tags which may be included between the <HEAD> and </HEAD> tags are:

BASE BASEFONT BGSOUND ISINDEX LINK META SCRIPT STYLE TITLE

The <TITLE> tag is a required element in all HTML documents. The closing </TITLE> is required. Search engines generally use the title as the document name in the result of their searches. The <LINK> tag is designed to define a relationship between documents. It may only appear in the <HEAD> section. You may have as many as you desire. Its job is to give information which various user agents (browsers and robots) may use. For example, one <LINK> attribute defines an icon to be used in favorites, and this is used by Internet Explorer and Mozilla.

You might also like