Saturday 28 September 2013

br and hr tags in HTML

Line breaks
Line breaks are different then most of the tags we have seen so far. A line break ends the line you are currently on and resumes on the next line. Placing <br /> within the code is the same as pressing the return key in a word processor. Use the <br /> tag within the <p> (paragraph) tag.
HTML Code:
<p>
Here you will find many things.<br />
Tutorials Of HTML and many Programming Language.<br />
</p>

Html horizontal rule
Use the <hr /> tag to display lines across the screen. Note: the horizontal rule tag has no ending tag like the line break tag.
HTML Code:
<hr />
Use
<hr /><hr />
Them
<hr />

Sparingly

No comments:

Post a Comment