- 1). Go to your Start menu and click on the "Programs" list.
- 2). Go to "Accessories" and then click on "Notepad" to start a new document. Don't save it yet until you're done with your first HTML document.
- 3). Start your document by implementing the HTML tag to indicate where your document starts and ends. Your page should now look like the following example:
<HTML>
</HTML>
Between these tags, write all the other HTML code you desire. - 4). Define a head tag so you can attach things related to the page that don't get displayed, as in the following example:
<HTML>
<HEAD>
<TITLE>Test page</TITLE>
</HEAD>
</HTML>
The head tag tells the browser that visits the page that it should load this before anything else, because those are the properties of the page.The "title" tag defined in the example displays a title for browsers to write on the header of the page. This usually shows up as part of the browser window's title. - 5). Define a body as in the following example:
<HTML>
<HEAD>
<TITLE>Test page</TITLE>
</HEAD>
<BODY>
<H1>Welcome to my test page!</H1>
<H4>This is how text in a size 4 heading looks like.</H4>
</BODY>
</HTML>
When you define a body, you create the "actual" page. What you see and hear in your browser while you browse a page comes as the body of the page. This is where all your "action" happens. The "H1" tag writes letters in large text. You might prefer this for titles. H4 defines a much smaller size for regular text. Notice how each tag opens and closes, telling the browser when to stop interpreting input in the manner specified. - 6). Click "File" and click "Save As." When the browser window comes up, browse to a location you desire to save the file to and select "All Files" where it says "Save as type." After the file name, write ".html." This saves your file as an HTML file readable by browsers.
previous post