|Introduction to HTML||Contents|
|<html>||Container for entire document|
|<body>||Contains content of page|
|<head>||Contains information that is generally not rendered|
|<style>||Contains style sheet rules|
|<script>||Contains script code|
1. The following code shows the most basic web page tags. The <html>, <head>, and <body> tags are structural tags and should appear in all pages. Copy the code and paste into a Notepad file. Then save with a .htm or .html extension.
<title>My First Page</title>
<!-- This is my first page -->
Copy this code.
Paste it into Notepad.
Save file as .htm or .html.
Open file in a browser such as Internet Explorer.
2. Open in a browser. Where is the "title"? Is the text on different lines? Where is the statement "This is my first page?"
3. View the source by right clicking on the page and clicking view source.
Create a web page which meets the following requirements: