First HTML Program | Creating and Explanation of First HTML Program - Basic example of an HTML program
First HTML Program: To create your first HTML program, you need a simple text editor like Notepad on Windows, TextEdit on macOS, or any code editor of your choice. Here's a basic example of an HTML program: 1. Open your text editor. 2. Type the following HTML code: 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 Program</title> </head> <body> <h1>Hello, World!</h1> <p>This is my first HTML program.</p> </body> </html> First HTML Program 3. Save the file with an .html extension, for example, index.html. 4. Open the saved HTML file in a web browser. HTML file Explanation of First HTML Program: <!DOCTYPE html>: Declares the HTML5 document type. <html lang="en">: The root element of the HTML documen...