Writing a Program Using HTML in Notepad

 

1.2.1 Writing a Program Using HTML in Notepad

To create an HTML file using Notepad (or any basic text editor):

  1. Open Notepad.
  2. Write your HTML code (e.g., the basic structure shown above).
  3. Save the file with a .html extension, for example: my_first_webpage.html.
  4. Double-click the saved file, and it will open in a web browser where you can view the webpage.

Example HTML code:

<!DOCTYPE html>
<html>
    <head>
        <title>My First Webpage</title>
    </head>
    <body>
        <h1>Hello, World!</h1>
        <p>This is my first HTML page.</p>
    </body>
</html>

Comments

Popular posts from this blog

Introduction to Computer

History of Computer

Computer Generation