Your Ad Here
HTML Basics

Bookmark and Share
HTML Tags

=> HTML tags are used to mark-up HTML elements
=> HTML tags are surrounded by the two characters < and >
     Example: <body>
=> The surrounding characters are called angle brackets
=> HTML tags normally come in pairs.
     Example: <body> </body>
=> The first tag in a pair is the start tag, the second tag is the end tag
     Example: <body> </body>
     Here start tag is <body> End tag is </body>
=> The text between the start and end tags is the element content
=> HTML tags are not case sensitive.

Simple HTML file contain tags

Below HTML file shows that how to use tags on HTML file. Each tag having an end tag. With out tags cant write HTML document.

<html>
<head>
<title>Title of page</title>
</head>
<body>    
This is my first homepage. <b>This text is bold</b>
</body>
</html>

Output on Browser

Title of page This is my first homepage. This text is bold

HTML Text Formatting tags

<b> Defines bold text
<big> Defines big text
<i> Defines italic text
<small> Defines small text
<strong> Defines strong text
<sub> Defines subscripted text
<sup>Defines superscripted text
<strike>Deprecated. Use <del> instead
<u>Deprecated. Use styles instead
<center>All the text within the tag to be centered.
<p>tag indicates a new paragraph
<em>Defines emphasized text
<pre>Defines preformatted text

Today's Deal