Basic Structure of HTML
1.2 Basic Structure of HTML
An HTML document has a basic structure that ensures a web page is displayed correctly in web browsers. The basic HTML structure consists of the following components:
<!DOCTYPE html>
<html>
    <head>
        <title>Title of the Page</title>
    </head>
    <body>
        <!-- Content of the page -->
    </body>
</html>
- <!DOCTYPE html>: Defines the document type and version of HTML.
- <html>: The root element that wraps the entire document.
- <head>: Contains metadata such as the title, character set, and linked resources like stylesheets.
- <body>: Contains the visible content of the webpage like text, images, and links.
 
 
 
Comments
Post a Comment