1 / 10

Introduction to HTML 4.0

Introduction to HTML 4.0. Getting Started – Links, Images, Font, and List. Teacher: Mr. Ho. Link Tag: <a> … </a>. <a> … </a> create a hyperlink so that you can go from one web page to another If you want to link to a Google web page, you can do the following:

jerzy
Download Presentation

Introduction to HTML 4.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to HTML 4.0 Getting Started – Links, Images, Font, and List Teacher: Mr. Ho

  2. Link Tag: <a> … </a> • <a> … </a> create a hyperlink so that you can go from one web page to another • If you want to link to a Google web page, you can do the following: <a href=“http://www.google.ca”>Google</a> • Make sure that <a> … </a> are between <body> and </body> • Make sure to include http://

  3. Attributes of <a> … </a> • Besides the href attribute, there are more attributes of <a> … </a>. • Check this out at http://www.w3schools.com/tags/

  4. Image Tag: <img /> • <img /> creates an image in an HTML file • There is no end tag for <img /> • To create an image in your HTML page, do this: <imgsrc=“happyFace.gif” /> • Make sure that <img /> is between <body> and </body> • Note: happyFace.gif must be in the same folder as your HTML page.

  5. Image Tag: <img /> • You can create a link on your image. • To do this: <a href=“http://www.google.ca”> <imgsrc=“happyFace.gif” /> </a> • There are more attributes of <img /> beside src: • height • width • border

  6. Font Tag: <font> … </font> • <font> … </font> set the font face, font size, and font colour of the text between the opening and closing <font> tags. • As you can guess, the attributes of <font> … </font> are: • face • size • color

  7. Font Tag: <font> … </font> Example: <font face=“verdana” size=“12” color=“red”> Testing the Font </font> • Make sure that <font> … </font> are between <body> and </body> • To figure out the attribute value for the font face, go to Microsoft Word.

  8. List: Unordered List • Unordered list looks like this: Example of Unordered List: • Coffee • Tea • Milk • To create this in HTML, you do: <h4>Example of Unordered List:</h4> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul>

  9. List: Ordered List • Ordered list looks like this: Example of Unordered List: • Coffee • Tea • Milk • To create this in HTML, you do: <h4>Example of Unordered List:</h4> <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>

  10. Questions & Answers • Do you have any questions so far? • If you do, please ask now.

More Related