HTML - other tags
Here you learn how to code other HTML tags.
Line breaks
The <br> tag is used when you want to end a line, but don't want to start a new paragraph. The <br> tag forces a line break wherever you place it. The <br> tag is an empty tag as it has no closing tag. If you want to write an article where you have a blank line in between the paragraphs you insert two consecutive breaks after a paragraph.|
<html> <head> <title>HTML tutorial</title> </head> <body> <body> Line1.<br>Line2. </body> </html> |
||
Line1. Line2. |
||
Comments in HTML
The comment tag is used to insert a comment in the HTML source code so that you can make notes in the code for yourself. A comment will be ignored by the browser. In order for this tag to work you need an exclamation point after the opening bracket, but not before the closing bracket.|
<html> <head> <title>HTML tutorial</title> </head> <body> <body> <!-- This is a comment - beginning of the first section--> First section - Content, content, content. <!-- This is a comment - beginning of the second section--> Second content section - Content, content, content. </body> </html> |
||
First section - Content, content, content. Second content section - Content, content, content. |
||
Horizonal Rule
The horizontal rule tag inserts a horizonal line that acts as a separator between different sections on a page. Most webmasters who use them format them with attributes to make them a particular length, thickness, and color. There is no closing tag with the horizontal rule. In the following example I have one unformatted horizontal rule followed by one that is formatted.|
<html> <head> <title>HTML tutorial</title> </head> <body> <body> <BR> <hr> <hr size=4 color=red width=250> </body> </html> |
||
Bookmark this page: |
Rate this page: |
Comments:
| please post comments | ||
|
admin November 21, 2006 |
||











