LESSON 02 WORK – HTML BASICS

 

GROUP ACTIVITY GUIDE

 

The teacher will lead the class to test out basic HTML tags and concepts.  Here is what is to be covered:

 

TOPIC 1 – Intro to HTML

 

 

TOPIC 2 – Getting Started

 

·         Instructions:

o   Create a folder called Lesson 01

o   Inside the folder, create a new text file

o   Open it in Notepad

o   Type in the HTML Template

§  Header section (explain title tag)

§  Body section – only one body tag!

o   Save file

o   Close Notepad

o   Rename the file to index.html

o   Now double click on the file.  You should have a blank webpage up.  The title in the blue bar at the top should match your tile.

 

TOPIC 3 – Making Changes

 

·         Instructions:

o   Open your html file in Notepad by right click on the file’s icon and choosing Open With > Notepad.

o   Open the file with your browser by double clicking the icon.

o   Now you have the file open in both.  You can make changes in Notepad, save the file and then in your browser, hit refresh to see the changes.

o   Test this by adding a sentence (anything) between the <body> tag and the </body> tag.

 

NOTE: You must always add content between the body tags. That is key!

 

TOPIC 4 – Changing Text

 

·         Make use of the <b>, <u> and <i> tags to bold, underline and italicize one word.

·         Make use of the <center> tag to center a title for your page

 

TOPIC 5 – The font tag (Intro to attributes)

 

 

Example tag:

 

<font color= "blue" face="arial" size="3">blah blah blah</font>

 

TOPIC 6 – SPACING

 

 

TOPIC 7 – Horizontal line

 

 

Got extra time?

 

  • Two of this tag’s attributes are size and width.  Can you figure out what they do?

  • Another attribute is align.  Possible values are left, right and center.  Try it.

 

TOPIC 8 – Background Colour

 

 

Example

 

<body bgcolor="pink">

 

Got extra time?

 

  • List of colors: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, pink and yellow.

  • In fact, there are way more colors including some funky names: Aquamarine, Cornflowerblue, BurlyWood, DarkKhaki, FireBrick, PaleVioletRed, Peru, PaleGoldenRod, MintCream, Tomato, ...

  • Want even more color options?  Sure! Instead of putting a color name, put the following for the color value: rgb(#,#,#) where each # is a number between 0 and 255.  More on this later.

 

TOPIC 9 – ADDING AN IMAGE

 

 

Example

 

<img src="sensLogo.jpg" height=200 border=1>

 

Got extra time?

 

  • Another attribute is alt.  It’s value should be any words inside double quotes.  Can you figure out what it does?

 

      Example

     

      <img src="sens.jpg" alt="Go Sens Go">

 

TOPIC 10 – BACKGROUND IMAGE (TEXTURE)

 

 

Example

 

<body background="bgimage.jpg">

 

TOPIC 11 – CREATING A SECOND HTML FILE

 

 

TOPIC 12 – MAKING A LINK TO A WEBSITE

 

 

Example

 

<a href="http://www.lockerby.net/">Text Link</a>

 

TOPIC 13 – MAKING A LINK TO ANOTHER PAGE

 

 

TOPIC 14 – LINKING TO OTHER FILES

 

 

TOPIC 15 – IMAGES AS LINKS

 

 

Example

 

<a href="page.html"><img src="image.jpg"></a>