Section 1:
- Surround your paragraphs with the <p> </p> tags for a paragraph.
- The <br> tag starts a new line without skipping any space.
- To draw a line across the screen, use <hr> (for "horizontal rule").
Tag | How to use it | What it looks like |
<p> </p> | <p> Bid on my item! </p> <p> You'll enjoy it! </p> | Bid on my item! You'll enjoy it! |
<br> | Bid on my item! <br> You'll enjoy it! | Bid on my item! You'll enjoy it! |
<hr> | Bid on my item! <hr> You'll enjoy it! | Bid on my item! You'll enjoy it! |
Attribute for <P ...>
ALIGN indicates the alignment of the paragraph. <P ALIGN=LEFT> produces
|
<BR ...><BR ...> inserts a single carriage return. Whereas <P ...> indicates the start of a new paragraph, <BR ...> only implies a carriage return within the same paragraph. <BR ...> is usually rendered with a single carriage return. For example, this code: There once was a man from Nantucket<BR> produces this There once was a man from Nantucket |
Attribute for <HR ...>
WIDTH sets the horizontal width of the rule. You can express the size in pixels or as a percentage. <HR WIDTH="50%"> Attribute for <HR ...> ALIGN sets the alignment of the rule. ALIGN is only useful if you also use WIDTH.
|
No comments:
Post a Comment