| HTML Tags
|
|
Links
» HTML links are defined with the <a> tag.
Example:
<a href="http://www.chennaisunday.com/hometutorial.html">This is a link</a>
Images
» HTML images are defined with the <img> tag.
Example:
<img src="chennaisunday.jpg" width="104" height="142" />
Comments
Comments can be inserted in the HTML code to make it more readable and understandable.
Comments are ignored by the browser and are not displayed.
Comments are written like this:
Example:
<!-- This is a comment -->
|
HTML Tag Reference
| Tag |
Description |
| <html> |
Defines an HTML document |
| <body> |
Defines the document's body |
| <h1> to <h6> |
Defines header 1 to header 6 |
| <hr /> |
Defines a horizontal rule |
| <!--> |
Defines a comment |
| <p> |
Defines a paragraph |
| <br /> |
Inserts a single line break |
|
Example:
» <p>This is<br />a para<br />graph with line breaks</p>
» <The <br /> element is an empty HTML element. It has no end tag.
|
|
Back to Top |