HTML Exercises - 1 & 2:
We did get started with HTML. If possible I would like each of you to do some additional work with HTML before the next class.
Though you may think you understand the material from reading these instructions and viewing the videos, I believe it is very important for you to actually do all the steps using the Notepad editor and your browser. You will learn far more from doing things than viewing them.
First I want to give you a better understanding of HTML files and how they can be viewed. This video will do that. It may be useful to view it more than once.
Click for video re using marioncode website to learn more about HTML. Click here for a few helpful comments about HTML files.
Excersise #1
Do the following steps to create and view a new HTML file:
1. Use the Notepad editor to create a file on your computer.
2. Type in the lines shown below:
<html>
<head>
<title>
Homework 1
</title>
</head>
<body>
This is the text for homework # 1
</body>
</html>
3. Save that file with the name “homework.html”. Save it on your Desktop (we will learn a better place to save files next week).
4. Open the file with a browser:
· Open the browser
· Press “Ctrl-o” - Hold down the control key and tap the “o” key on the keyboard. This should bring up the box permitting you to open a file.
· Browse to find the “homework.html” file and click to open it
· If your HTML file is made correctly you will see the contents you entered in the file
Excersise #2
Next do the following steps to modify the <body> section of the homework.html file:
1. Use the Notepad editor to change the body section to become:
<body> <font size="5">This text uses a font size of 5</font> <br> <font size="7", color="red">font size of 7,colored red</font> </body> 2. Save this file to the desktop as “homework2.html”
3. Open the file with a browser (see step 4 – “Open the file with a Browser” above )
Click for Video of Exercise 2 Please post a message on the Stackeroo site when you have completed these two exercises.