HTML: HR Tag and make Comments
<title>Example of a link </title>
Comment and HR Tags </a>
The purpose of this tutorial is to show you how to write a HTML page using the HR (Horizontal Rule) tag and comments. What is HTML (HyperText Markup Language)? HTML is a layout/tag language that is used to organize text and/or images on a web page. In the following example, we will show you the code
for our page that uses the HR tag and use comments. Consider the following example
William Jones 123 Main St. Spokane, WA 99201 April 3, 2008</body>
<!-- This HTML page will display the HR tag and a comment -->
|Figure 1: HTML Example of a page with HR tag and a comment|
In Figure 1, we show an example of a comment and the use of the HR tag. We use the HR tag to visually separate sections of a page.
The HR tag is often used to show a change in topic. This has the effect of visually separating sections of the document.
<!-- Here is an example of the horizontal rule tag: --> |
|Figure 2: HTML Example of a page with commented horizontal rule tag|
Horizontal Ruled (HR) Lines are used to separate different areas of a web page. In HTML the <hr> tag has no end tag.
|Specifies the alignment of the horizontal rule. Deprecated. Use cascading style sheets instead|
|noshade||noshade||When set to true the rule should render in a solid color, when set to false the rule should render in a two-color "groove". Deprecated. Use cascading style sheets instead|
|Specifies the thickness (height) of the horizontal rule. Deprecated. Use cascading style sheets instead|
|Specifies the width of the horizontal rule Deprecated. Use cascading style sheets instead|
<p>This is the start of a paragraph.
<!-- Comment: The use of the HR tag is with deprecated attributes -->
<HR width="50%" align="center">
<HR size="5" width="50%" align="center">
<HR noshade size="5" width="50%" align="center">
|Figure 3: HTML Example of a page with the HR tag and deprecated attributes|
This is the start of a paragraph.
|Figure 4: HTML Example HR tag|
Feel free to copy and paste the code the above figures into a source file.
© 2002 - 2013 All Rights Reserved Total Application Works