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):
- Open Notepad.
- Write your HTML code (e.g., the basic structure shown above).
- Save the file with a
.html
extension, for example:my_first_webpage.html
. - 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
Post a Comment