HTML html tag | Sakala Code
Sakala Code 1 year ago
sakalacode #html

HTML html tag

It defines the entire HTML document and contains all the other HTML elements. The <html> tag typically includes two main sections: the <head> section, which contains meta-information about the document, and the <body> section, which contains the content that is displayed on the web page.

HTML html tag Structure of an HTML Document

<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>My Web Page</title>
</head>
<body>
....
</body>
</html>

Attributes of the <html> Tag

  1. lang: Specifies the language of the document's content.
  2. xmlns: Defines the XML namespace, though it's rarely needed in most HTML documents.

HTML html tag With Example

<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HTML</title>
</head>
<body>
  <h1>Welcome to SakalaCode</h1>
  <p>My first HTML page.</p>
  <ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
  </ul>
</body>
</html>
0
303
HTML Audio Tag

HTML Audio Tag

1709870648.png
Sakala Code
1 year ago
HTML Aside Tag

HTML Aside Tag

1709870648.png
Sakala Code
1 year ago
HTML plugins with example

HTML plugins with example

1709870648.png
Sakala Code
1 year ago
HTML Bold Tag

HTML Bold Tag

1709870648.png
Sakala Code
1 year ago
HTML Article Tag

HTML Article Tag

1709870648.png
Sakala Code
1 year ago