IT. Expert System.

HTML

hr


Tag Description

The hr tag is used to create a horizontal line in an HTML document. The horizonal line visually separates content.

This tag has the form:

<hr />

HTML5 and HTML4.01 Differences

In HTML 5, the <hr> tag displays a horizontal rule, and defines a change in the content.

In HTML 4.01 it just displayes a horizontal rule.

All attributes in HTML 4.01 (align, noshade, size, and width) are deprecated in HTML 4.01, and not supported in HTML 5.

Attributes

Attribute Value Description
align left
right
center
Sets the alignment of the hr element
HTML4: deprecated in html4.01
HTML5: not supported in html5
noshade noshade Specifies that the element should be drawn using a solid color, instead of a shaded color
HTML4: deprecated in html4.01
HTML5: not supported in html5
size pixels Sets the height of the hr element
HTML4: deprecated in html4.01
HTML5: not supported in html5
width pixels
%
Sets the width of the hr element
HTML4: deprecated in html4.01
HTML5: not supported in html5

Global Attributes

This tag also supports the HTML Global Attributes.

Event Attributes

This tag also supports the HTML Event Attributes.

Examples

The following example shows the basic use of this tag:

<p>Paragraph 1</p>
<hr />
<p>Paragraph 2</p>

This produces the following:

Paragraph 1


Paragraph 2

Browser Support

Firefox IE Chrome Opera Safari

Doctype Declaration Support

The following table lists the doctype declarations this element may appear in:

HTML4.01 / XHTML1.0 XHTML 1.1 HTML 5
Traditional Strict Frameset

Miscellaneous Information

Defined In: HTML 2
Empty Tag: Yes


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2387 / . Delta: 0.09937 с