Shadow
Slider

How to use it HTML Tag

How to use it HTML Tag

HTML5_Logo

How to use it HTML Tag

Definition und Verwendung

Das Tag teilt dem Browser mit, dass es sich um ein HTML-Dokument handelt.

Das Tag stellt die Wurzel eines HTML-Dokuments dar.

Das Tag ist der Container für alle anderen HTML-Elemente (außer dem Tag ).

 

Browser Support

compatible_chromeChrome compatible_edgeEdge compatible_firefoxFirefox compatible_operaOpera compatible_safariSafari

<!DOCTYPE HTML>
  <html>
    <head>
      <title>Title of the document</title>
    </head>

    <body>
      The content of the document......
    </body>
  </html>
 

Unterschied zwischen XHTML und HTML

Das Attribut xmlns wird in XHTML benötigt, ist aber in HTML ungültig.

Der HTML-Validator unter http://w3.org beschwert sich jedoch nicht, wenn das Attribut xmlns in einem XHTML-Dokument fehlt. Dies liegt daran, dass der Namensraum „xmlns=http://www.w3.org/1999/xhtml“ voreingestellt ist und dem Tag <html> hinzugefügt wird, auch wenn Sie ihn nicht einbeziehen.

Attribute

Attribute Wert Beschreibung
xmlns
http://www.w3.org/1999/xhtml
Gibt das XML-Namensraumattribut an (Wenn Sie möchten, dass Ihr Inhalt XHTML-konform ist).

Globale Attribute

Das Tag <html> unterstützt auch die globalen Attribute in HTML.

 

You must be logged in to post a comment