Build a web page |
|
Look at a web page |
|
Click the link to see a very simple web page. It is very simple, but it contains the essential elements. In your Firefox browser, right click and select -view page source to see the source code I typed. (It might be a little different in another browser.) Close the source code window. Use the back arrow from the sample page, to return to this page.
The <!DOCTYPE html> says this is an HTML page.
Within the
<html> </html> container, we find the
<head> </head> container, followed by the
<body> </body> container.
Other typing, that is not in a tag, is just text.
The text within the
<title> </title> container
shows up in the blue window bar at the top of the window.
This <html lang="en"> tag specifies that the language is English.
The html, head, title, and body are required elements in all standard web pages. |
|
Create a directory for your web pages |
|
You need a directory to keep your web pages in while you work on them, before you put them up on the Internet. The links at the left lead to pages which tell you how to setup at home, and how to set up a windows account at school. You can work at home ( or other place where you have a computer ) or you can work at school. Many students work both at home and at school. You can carry work between home and your windows account at school using a USB flash drive, or send it to yourself in an email. At the end of the quarter, you may wish to carry a copy of all of your work from school to home, because the student accounts are destroyed at the end of the quarter. |
|
Build a web page |
|
Now you are ready to build your own web page. Carefully note the following things:
Use notepad as your editor on Windows.
If you are a Mac user, use the TextEdit editor.
If your home computer is a Linux system use vi, Emacs, or pico.
Look at the sample page. Type your own page. Make your page like the sample, except put your first name in the title, and type a couple of sentences in the body.
Save your page in your public_html directory with the name lab1.html. |
|
Get a good browser |
|
You need a good browser. Mozilla Firefox is very good. I usually use Firefox to grade your pages. Opera is very good. Chrome is also very good, Safari has a good reputation in the Macintosh environment. Pick one of these four, download it, and install it on your own computer. Firefox and Chrome are already installed on the CIS computers at school, so you do not need to install a browser when you work on these computers. |
|