English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
In einem HTML-Dokument sind Überschriften wichtig, und es ist ebenfalls wichtig, sie korrekt zu verwenden.
Sechs verschiedene HTML-Überschriften:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Grundlagen-Tutorial-Website(oldtoolbag.com)</title> </head> <body> <h1>This is a Heading 1</h1> <h2>This is a Heading 2</h2> <h3>This is a Heading 3</h3> <h4>This is a Heading 4</h4> <h5>This is a Heading 5</h5> <h6>This is a Heading 6</h6> </body> </html>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support <h1> - <h6> Tag.
<h1> - <h6> tag is used to define HTML headings.
<h1> Defines the highest importance level of the title. The <h6> Defines the lowest importance level of the title.
In HTML 4.01 in, <h1> - <h6> "align" attribute has been deprecated. In HTML 5 in, <h1> - <h6The "align" attribute of the <h> element is not supported. Please use CSS to align elements.
Attribute | Value | Description |
---|---|---|
align | left center right justify | HTML5 Not Supported. HTML 4.01 Deprecated. Defines the alignment of the title text. |
<h1> - <h6Tag Support HTML Global Attributes.
<h1> - <h6Tag Support HTML Event Attributes.
HTML Tutorial:HTML Titles