Referenz:HTML/hr

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
Name hr HTML5 HTML 4.0
Bedeutung kennzeichnet einen thematischen Bruch.
Syntax Start-Tag: notwendig
End-Tag: verboten
<hr>
optionale Tags

{{{optional}}}

WAI-ARIA-Rolle
  • separator
Elternelemente Darf vorkommen in:
  • allen Elementen, die fließenden Inhalt erlauben
Info: Elemente, die fließenden Inhalt erlauben (flow content expected)Info: Elemente, die fließenden Inhalt erlauben (flow content expected)

Information: Elemente, die fließenden Inhalt erlauben

erlaubte Inhalte

keine, leeres Element

Browsersupport
  • Chrome
  • Firefox
  • IE
  • Opera
  • Safari
Spezifikation W3c logo klein.gif The hr element
Beachten Sie
Tipp
Validität Prüfen Sie, ob Ihr Markup valide ist, falls Sie sich nicht sicher sind.
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID identifiziert ein einziges Element innerhalb eines Dokuments
class CDATA ordnet ein Element einer oder mehreren Klassen zu.
accesskey ID Tastaturkürzel
contenteditable CDATA editierbarer Inhalt
contextmenu definiert Kontextmenü
dir ltr, rtl definiert die Schreibrichtung innerhalb des Dokuments
draggable ID kann mit Drag & Drop gezogen werden
dropzone CDATA Aktion bei Ablegen
hidden versteckter Inhalt
lang NAME legt eine den IANA-Sprachdefinitionen folgende Sprache des Elementinhalts fest [RFC1766]
spellcheck ID Rechtschreibprüfung
style CDATA notiert direkt in einem Element- style sheet data
tabindex NAME zeigt an, ob dieses Element fokusiert werden kann, ob es mithilfe der Tastaturnavigation angesteuert werden kann und in welcher Reihenfolge navigiert wird.
title CDATA betitelt oder beschreibt ein Element.

Attribut: Pflichtattribut
Attribut: optionales Attribut

HTML 4.01 Strict[Bearbeiten]

Bedeutung horizontal rule
Tags Start-Tag: notwendig
End-Tag: verboten

<hr>

Elternelemente Darf vorkommen in:

blockquote, body, button, dd, del, div, fieldset, form, ins, li, map, noscript, object, td, th

Kindelemente
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID document-wide unique id
class CDATA space-separated list of classes
style CDATA associated style info - style sheet data
title CDATA advisory title
lang NAME language code - a language code, as per [RFC1766]
dir ltr, rtl direction for weak/neutral text
onclick CDATA a pointer button was clicked - script expression
ondblclick CDATA a pointer button was double clicked - script expression
onmousedown CDATA a pointer button was pressed down - script expression
onmouseup CDATA a pointer button was released - script expression
onmouseover CDATA a pointer was moved onto - script expression
onmousemove CDATA a pointer was moved within - script expression
onmouseout CDATA a pointer was moved away - script expression
onkeypress CDATA a key was pressed and released - script expression
onkeydown CDATA a key was pressed down - script expression
onkeyup CDATA a key was released - script expression


HTML 4.01 Transitional[Bearbeiten]

Bedeutung horizontal rule
Tags Start-Tag: notwendig
End-Tag: verboten

<hr>

Elternelemente Darf vorkommen in:

applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noframes, noscript, object, td, th

Kindelemente
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID document-wide unique id
class CDATA space-separated list of classes
style CDATA associated style info - style sheet data
title CDATA advisory title
lang NAME language code - a language code, as per [RFC1766]
dir ltr, rtl direction for weak/neutral text
onclick CDATA a pointer button was clicked - script expression
ondblclick CDATA a pointer button was double clicked - script expression
onmousedown CDATA a pointer button was pressed down - script expression
onmouseup CDATA a pointer button was released - script expression
onmouseover CDATA a pointer was moved onto - script expression
onmousemove CDATA a pointer was moved within - script expression
onmouseout CDATA a pointer was moved away - script expression
onkeypress CDATA a key was pressed and released - script expression
onkeydown CDATA a key was pressed down - script expression
onkeyup CDATA a key was released - script expression
align left, center, right
noshade noshade
size CDATA - integer representing length in pixels
width CDATA - nn for pixels or nn% for percentage length


HTML 4.01 Frameset[Bearbeiten]

Bedeutung horizontal rule
Tags Start-Tag: notwendig
End-Tag: verboten

<hr>

Elternelemente Darf vorkommen in:

applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noscript, object, td, th

Kindelemente
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID document-wide unique id
class CDATA space-separated list of classes
style CDATA associated style info - style sheet data
title CDATA advisory title
lang NAME language code - a language code, as per [RFC1766]
dir ltr, rtl direction for weak/neutral text
onclick CDATA a pointer button was clicked - script expression
ondblclick CDATA a pointer button was double clicked - script expression
onmousedown CDATA a pointer button was pressed down - script expression
onmouseup CDATA a pointer button was released - script expression
onmouseover CDATA a pointer was moved onto - script expression
onmousemove CDATA a pointer was moved within - script expression
onmouseout CDATA a pointer was moved away - script expression
onkeypress CDATA a key was pressed and released - script expression
onkeydown CDATA a key was pressed down - script expression
onkeyup CDATA a key was released - script expression
align left, center, right
noshade noshade
size CDATA - integer representing length in pixels
width CDATA - nn for pixels or nn% for percentage length


XHTML 1.0 Strict[Bearbeiten]

Bedeutung
Tags Start-Tag: notwendig
End-Tag: leer

<hr />
<hr></hr>

Elternelemente Darf vorkommen in:

blockquote, body, button, dd, del, div, fieldset, form, ins, li, map, noscript, object, td, th

Kindelemente
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID
class CDATA
style CDATA
title CDATA
lang NMTOKEN
xml:lang NMTOKEN
dir ltr, rtl
onclick CDATA
ondblclick CDATA
onmousedown CDATA
onmouseup CDATA
onmouseover CDATA
onmousemove CDATA
onmouseout CDATA
onkeypress CDATA
onkeydown CDATA
onkeyup CDATA


XHTML 1.0 Transitional[Bearbeiten]

Bedeutung
Tags Start-Tag: notwendig
End-Tag: leer

<hr />
<hr></hr>

Elternelemente Darf vorkommen in:

applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noframes, noscript, object, td, th

Kindelemente
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID
class CDATA
style CDATA
title CDATA
lang NMTOKEN
xml:lang NMTOKEN
dir ltr, rtl
onclick CDATA
ondblclick CDATA
onmousedown CDATA
onmouseup CDATA
onmouseover CDATA
onmousemove CDATA
onmouseout CDATA
onkeypress CDATA
onkeydown CDATA
onkeyup CDATA
align left, center, right
noshade noshade
size CDATA
width CDATA


XHTML 1.0 Frameset[Bearbeiten]

Bedeutung
Tags Start-Tag: notwendig
End-Tag: leer

<hr />
<hr></hr>

Elternelemente Darf vorkommen in:

applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noscript, object, td, th

Kindelemente
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID
class CDATA
style CDATA
title CDATA
lang NMTOKEN
xml:lang NMTOKEN
dir ltr, rtl
onclick CDATA
ondblclick CDATA
onmousedown CDATA
onmouseup CDATA
onmouseover CDATA
onmousemove CDATA
onmouseout CDATA
onkeypress CDATA
onkeydown CDATA
onkeyup CDATA
align left, center, right
noshade noshade
size CDATA
width CDATA