Write Your First HTML Document | Declares the document type and version of HTML - Simple example of a basic HTML document
Write Your First HTML Document: Here's a simple example of a basic HTML document. Copy and paste this code into a text editor (like Notepad on Windows, TextEdit on macOS, or Visual Studio Code) and save it with an `.html` file extension. You can then open it in a web browser to see the rendered output. html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My First HTML Document</title> </head> <body> <header> <h1>Welcome to My First HTML Document</h1> </header> <main> <p>This is a simple paragraph in the main content section.</p> <ul> <li>Item 1</li> ...