HTML Scripting Lesson 1b - HR

January 14, 2004

Use <P> to separate paragraphs. The <P> tag creates a space that is relative to the text around it. So if the font is bigger, you will get a bigger space between paragraphs.

You can use many breaks <BR> <BR> <BR> in a row to give a larger space between paragraphs.


OR You can also use the non-breaking space symbol: &nbsp; after a <P> tag to have a larger space...
<P>&nbsp;<P>  

Between Paragraphs.

You can also use many &nbsp; symbols in a row to make more space between words...
Now I want a lot of space between this word         and that word.


HORIZONTAL RULE: <HR>

ATTRIBUTES:

size=n (height in pixels);

width=n (width in pixels); OR

width="n%" (changes to a percent of the window size - changes relative to browser window)

align="direction"; "center, left, or right" in quotes;

NOSHADE (removes the 3D edges from the rule)

Attributes can be placed in any order within the HR tag. Just leave a space between them.

The code for the following Horizontal Rule is:
<HR size=20>


The code for the following Horizontal Rule is:
<HR width="50%">


The code for the following Horizontal Rule is:
<HR align="right" width="90%">


The code for the following Horizontal Rule is:
<HR size=30 NOSHADE>


The code for the following Horizontal Rule is:
<HR size=30 align="left" width=30>


The code for the following Horizontal Rule is:
<HR align="left" width="25%" size="5" NOSHADE>



Back to Headers     |     On to Fonts     |     Back to Syllabus