vadnica-logo
X

The <html> tag

The <html> tag represents the root of an HTML document. The <html> tag is a container for all other elements except for the <!DOCTYPE> declaration. In the <html> tag, we must always include the lang attribute to specify the language of the web page (for Slovenian, it is "sl"). This is intended to help search engines and browsers. The <html> tag is written in a text editor like this:

        
<html lang="en">        
    

If we continue with our HTML document in the text editor, the <!DOCTYPE> declaration is followed by the <html> tag, which includes the lang attribute. The provided links refer to HTML ISO Country Codes and HTML ISO Language Codes.

HTML Tag Explanation
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<h1></h1>
<p></p>
</body>
</html>
EXAMPLE
RESULT

Thank you for visiting! Adding privacy policy.

© 2024 All rights reserved.

Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.