Session 1
The Basic HTML Page Structure
An HTML page must have this structure for it to be called an HTML Page.
<html>
<head>
<title> </title>
</head>
<body>
</body>
</html>
NOTE: To type any HTML content, you'll use a text editor( explained in a previous post ).
Using Notepad:
1- Click on the Start menu
2-Click on All Programs
3-Click on Accessories and then Notepad
Using Notepad++ :
Steps 1 and 2 above
Click on Notepadp++
Using TextEdit:
Open TextEdit from the Applications folder.
To save as an HTML file:
1- Click on File in the properties bar.
2- Click on Save As
3- In file name type in a name that is relateted to the document and also one you'll remember.
4-Use the .html file extension to save it as an HTML file.
To View the Page in a Browser:
1- Open your browser.
2- Click on File in the properties bar.
3- Click on Open
4- Select the file
TIP: Double click the file in its source folder and it'll be opened automatically by your default browser.
Before we treat the <html>, <head>, <title> and <body> elements in details, we need to treat a very important aspect: The <!DOCTYPE> declaration.
No comments:
Post a Comment