Skip to main content

Posts

Showing posts with the label HTML Document Basic Structure

HTML Document Basic Structure | Break down the HTML structure - Example of the basic structure of an HTML document

HTML Document Basic Structure: An HTML (Hypertext Markup Language) document follows a basic structure that includes the declaration, head, and body sections.  Here's an example of the basic structure of an HTML document: html <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Your Page Title</title>     <!-- Additional head elements such as stylesheets and scripts can be added here --> </head> <body>     <!-- The content of your webpage goes here -->     <h1>Hello, World!</h1>     <p>This is a basic HTML document.</p> </body> </html> HTML Document Basic Structure Let's break down the structure: 1. `<!DOCTYPE html>`:    - Declares the document type and version of HTML being used. In this c...