Search Topic Here

Wednesday, 12 December 2012

usage of hr tag


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

AttributeValueDescription
alignleft
center
right
Not supported in HTML5. Deprecated in HTML 4.01.Specifies the alignment of a <hr> element
noshadenoshadeNot 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
sizepixelsNot supported in HTML5. Deprecated in HTML 4.01.Specifies the height of a <hr> element
widthpixels
%
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>

output:

HTML

HTML is a language for describing web pages.

CSS

CSS defines how to display HTML elements.

No comments:

Post a Comment