usage of <hr>;
The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic).
The <hr> element is used to separate content (or define a change) in an HTML page.
Attributes
| Attribute | Value | Description |
|---|---|---|
| align | left center right | Not supported in HTML5. Deprecated in HTML 4.01.Specifies the alignment of a <hr> element |
| noshade | noshade | Not supported in HTML5. Deprecated in HTML 4.01.Specifies that a <hr> element should render in one solid color (noshaded), instead of a shaded color |
| size | pixels | Not supported in HTML5. Deprecated in HTML 4.01.Specifies the height of a <hr> element |
| width | pixels % | Not supported in HTML5. Deprecated in HTML 4.01.Specifies the width of a <hr> element |
example program:
<html>
<body>
<h1>HTML</h1>
<p>HTML is a language for describing web pages.</p>
<hr color=green>
<h1>CSS</h1>
<p>CSS defines how to display HTML elements.</p>
</body>
</html>
No comments:
Post a Comment