Computer Applications
Defining and using a horizontal rule.
<HTML>
<BODY>
<P>The hr tag defines a horizontal rule:</P>
<HR>
<P>This is a paragraph</P>
<HR>
<P>This is a paragraph</P>
<HR>
<P>This is a paragraph</P>
</BODY>
</HTML>
Related Questions
The heading tags.
<HTML> <BODY> <H1>This is heading 1</H1> <H2>This is heading 2</H2> <H3>This is heading 3</H3> <H4>This is heading 4</H4> <H5>This is heading 5</H5> <H6>This is heading 6</H6> <P>Use heading tags only for headings. Don't use them to make something big. Use other tags for that.</P> </BODY> </HTML>Centralized heading.
<HTML> <BODY> <H1 align = "center">This is heading 1</H1> <P>The heading above is aligned to the center of this page. The heading above is aligned to the center of this page. The heading above is aligned to the center of this page.</P> </BODY> </HTML>Comments in HTML source.
<HTML> <BODY> <!--This comment will not be displayed--> <P>This is a regular paragraph</P> </BODY> </HTML>Add a background colour.
<HTML> <BODY bgcolor = "yellow"> <H3>Look: Colored Background!</H3> </BODY> </HTML>
