Page 161 - Dig_CodeAI_V2.1_Class_7
P. 161
Text Editor
We can create HTML documents using normal text editors like Notepad or Wordpad. The user should
have a proper knowledge of the HTML commands to develop a web page.
Rules for Writing HTML Codes
There are certain rules for writing HTML codes. Lets us learn more about them:
Container tags should always be closed properly.
Values given to the attributes should be enclosed within the double quotes.
Tag name should not contain spaces.
There should be no spaces between < and > in a tag.
Tags must be nested correctly.
Creating and Saving an HTML Document
To create an HTML document, open a text editor (here, we have used Notepad) and type the code.
1 Open the Notepad and
3 Click on Save to open
write the HTML code. 2 Click on File menu.
Save As dialog box.
4 Choose the location
where you want to
save the file.
5 Enter name for
the file as ‘First Web 6 Click on Save
Page.html’.
button to save
the file.
Introduction to HTML 159

