Chapter 2: Basic HTML Structure

Hazaifa
0



Every HTML document has a basic structure that includes a head and a body. The head contains information about the webpage, such as the title and meta tags, while the body contains the content that is displayed on the webpage.


The basic structure of an HTML document looks like this:


<html>

  <head>

    <title>My Webpage</title>

  </head>

  <body>

    <p>Hello, world!</p>

  </body>

</html>

In this example, the <html> tag indicates the start of the HTML document, the <head> tag defines the head of the document, the <title> tag defines the title of the webpage, and the <body> tag defines the body of the document.

Post a Comment

0Comments
Post a Comment (0)