![]() |
|
Basic HTML or My First Web Page
In this section we are going to take the sentence we used as an earlier example and turn it into a proper HTML file and then view it in a web browser.
Creating your file
Where do I start?
Although Windows has recognised the file as HTML because of it's ending it is still only a text file. There are a few basic elements which are essential to set the framework for our HTML.
Have a look at, but do not copy, the following code and see if you can identify the important elements;
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
UNSW Science Communication is a great
degree.
</body>
</html>
Can you see a structure to the HTML? What do you think the title does? This might look easier.
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
UNSW Science Communication is a great
degree.
</body>
</html>
The <html> and
</html> tags are used to tell the
web browser that the information between in HTML.
The <head> and
</head> tags are used for
information about the web page. This includes keywords and descriptions
for search engines. It also includes the
<title> and </title> tags
which are for the title which appears in the top toolbar of the window.
Can you see the title for this page?
The <body> and
</body> tags are for the
information which will actually appear on the page.
What will it look like?
Can you create your own HTML?
UNSW Science Communication is a great degree.
Save your changes and open the file in your web browser. [HINT: If you leave the web browser open you can just hit refresh each time to see what your changes look like]
The following HTML tag information may make this easier;
| Bold | <b> & </b> [or <strong> & </strong>] |
| Italic | <i> & </i> [or <em> & </em>] |
| Underline | <u> & </u> |
Once you think you have finished open your page in your web browser to show the people next to you. Do they look the same?
Finished?
Congratulations you have just created your first web page.
While you are waiting for others to finish go to
http://www.ncdesign.org/html/index.htm and have a look at other HTML tags
and what they can be used for. There are too many tags to remember.
You might want to keep this guide open for reference, especially when you are
creating your own pages at home.