SlideShare a Scribd company logo
ICT11
Introducing HTML


    Rita Ester
What is HTML?
   Hypertext Markup Language
   Specifies the structure of a web page:
        Contents
        How the page is displayed
   Platform independent
        Can be interpreted by any computer
         regardless of the hardware or operating
         system.
18/04/2012           ©WCCS, ICT11: Introducing HTML   2
How to find HTML?
    Open IE
    Open a web page
      e.g.
      http://www.biblegateway.
      com/
    Use the command
     View  Source
    Notepad opens
     with the HTML code
     of the web page

18/04/2012            ©WCCS, ICT11: Introducing HTML   3
Tags
 Example:                            Words/ characters
                                       in angled brackets
   <p>
                                      Opening Tag
       This is a paragraph.                <p>
   </p>                               Closing Tag
                                           </p>
                                      Enclose what has
                                       to be formatted


18/04/2012        ©WCCS, ICT11: Introducing HTML       4
Structure of an HTML Document
   <html>
             <head>


             </head>
             <body>


             </body>
   </html>
18/04/2012             ©WCCS, ICT11: Introducing HTML   5
Document Tags
   <html>
             <head>
                <title> Document Title </title>
             </head>
             <body>
                Content of the page
             </body>
   </html>
18/04/2012             ©WCCS, ICT11: Introducing HTML   6
Demo 1: Your First Web Page
  <html>

       <head>
           <title>My First Home Page</title>
       </head>

       <body>
           <!--Here is the text for display -->
           Hi folks, my name is Chris Brown.
       </body>

  </html>
18/04/2012             ©WCCS, ICT11: Introducing HTML   7
Tags and Attributes
    Attributes are added to tags

    Example

       <body bgcolor = “red” text = “#0000FF”>

             This shows blue text
             on red background

       </body>


18/04/2012           ©WCCS, ICT11: Introducing HTML   8
Demo 2: Change Page Colours
  <html>
     <head>
         <title>My First Home Page</title>
     </head>

       <body bgcolor = “yellow” text = “#000033 “>

             <!--text dark blue on yellow background -->
              Hi folks, my name is Chris Brown.

       </body>
  </html>

18/04/2012               ©WCCS, ICT11: Introducing HTML    9
Tags for Header Formatting
  <h1> Heading 1 </h1>
  ...                                        Smaller font
  <h6> Heading 6 </h6>

   Define the font size
   Define space above and below
   Example:
        <h1> My Vacation to Mexico </h1>

        Browser display:
                My Vacation to Mexico
18/04/2012           ©WCCS, ICT11: Introducing HTML         10
Demo 3: Use Heading Tags
  <html>

      <head>
          <title>My Vacation Page</title>
      </head>

       <body>


             <h1> My Vacation to Mexico </h1>

       </body>

  </html>
18/04/2012               ©WCCS, ICT11: Introducing HTML   11
Tags for Paragraph Formatting
    Paragraph Tag <p>
         <p>
             This is a paragraph
          </p>
         Text of the paragraph wraps
         After the paragraph: blank line

    Break Tag <br>
         Line Break, like ENTER key
         No closing tag

18/04/2012              ©WCCS, ICT11: Introducing HTML   12
Paragraph Alignment
    Default: left aligned
    Attribute added to the paragraph tag
        <p align="center">
            This is a centered paragraph
         </p>

        <p align="right">
            This is a right aligned paragraph
         </p>


18/04/2012         ©WCCS, ICT11: Introducing HTML   13
Demo 4: Paragraph Tags
  <html>
     <head>
          <title>My Vacation Page</title>
     </head>


     <body>
              <h1> My Vacation to Mexico </h1>


              <p> Last summer I travelled to Mexico.
              </p>

              <br>

      </body>
  </html>

18/04/2012                    ©WCCS, ICT11: Introducing HTML   14
Change Fonts: An Example
   <p>
         <font face="arial, helvetica, tahoma"
               size = "4"
               color="red">
            This paragraph is shown in
       Arial,              size 4, color red
         </font>
   </p>

18/04/2012         ©WCCS, ICT11: Introducing HTML   15
Tag for Font Setting
       <font face="face1[,face2][,face3]"
             size="n | +n | -n"
             color="color value">
             text to be displayed
       </font>
   Default Font:
    Times New Roman, size 3 (point 12)
   Sizes from 1..7

18/04/2012       ©WCCS, ICT11: Introducing HTML   16
More Tags for Text Formatting
   Physical       Logical Style                      Meaning
   Style
   <b> ... </b>   <strong>...</strong> bold

   <i> ... </i>   <em> ...</em>                      italic


   Examples
        <strong> These words are bold </strong>
        <i> These words are italic </i>
   Use logical styles rather than physical
18/04/2012          ©WCCS, ICT11: Introducing HTML             17
Demo 5: Text Formatting
  <body>
             <h1> My Vacation to Mexico </h1>

             <p>
                <font face = “Verdana”>
                   Last summer I travelled to

                    <strong>Mexico</strong>.
                </font>
             </p>

             <br>
  </body>

18/04/2012                ©WCCS, ICT11: Introducing HTML   18
Unordered Lists with HTML
    Example
         ∙ Photos
         ∙ Videos
    In HTML
             <ul>
               <li>Photos</li>
               <li>Videos</li>
               ...
             </ul>


18/04/2012            ©WCCS, ICT11: Introducing HTML   19
Ordered Lists with HTML
   Example
       1. Cut out the shapes
       2. Assemble the shapes

   In HTML
             <ol>
               <li>Cut out the shapes</li>
               <li>Assemble the shapes</li>
               ...
             </ol>

18/04/2012            ©WCCS, ICT11: Introducing HTML   20
Tables in HTML: Example
                                <table>
                                    <tr>
                                            <td> Sugar    </td>

                                            <td> Salt     </td>
Sugar         Salt   Peppper
                                         <td> Pepper      </td>
                                     </tr>
Sucre         Sel    Poivre           <tr>
                                          <td> Sucre      </td>

                                           <td> Sel       </td>

                                        <td> Poivre       </td>
                                    </tr>
                                </table>
 18/04/2012              ©WCCS, ICT11: Introducing HTML           21
Table Tags
   <table>...</table>
        for the entire table

   <tr>...</tr>
        for a row

   <td>...</td>
        for the cells, or columns, in each row
        table data tags

18/04/2012            ©WCCS, ICT11: Introducing HTML   22
Tables for Page Layout
   To design the layout structure of a web
    page
        Table without the borders showing
        Text stays inside it„s column borders

   Example



18/04/2012            ©WCCS, ICT11: Introducing HTML   23
HTML Code of the Example
  <table border="1" cellpadding="0" cellspacing="0"
          width="100%" height="550">
      <tr>
         <td valign="top" colspan="2" height="75">
             <!--Here goes the page title->
             <h1> Title </h1>
         </td>
      </tr>
      <tr>
         <td valign="top" width="10%">
               <!--This is the navigation pane, the buttons-->
              <b> Buttons </b>
         </td>
         <td valign="top" width="90%">
             <!--This is content-->
             <b> Here goes the content</b>
         </td>
      </tr>
  </table>
18/04/2012             ©WCCS, ICT11: Introducing HTML            24
Hyperlinks
   Example: GOOGLE
   to any other Web page
        Locally - in the web site, the page belongs to
        Globally - on the entire Web
   to text on the same page
   to other documents
   to e-mail

18/04/2012            ©WCCS, ICT11: Introducing HTML      25
Links to Global Web Pages
  Example
   <a href=“http://www.google.com”>
      GOOGLE
      GOOGLE

   </a>
  In general
       <a href="URL">
            name of the link
       </a>

18/04/2012    ©WCCS, ICT11: Introducing HTML   26
Links to Local Web Pages
  Pages in the same folder
        Link to the homepage
         <a href="index.html">                index.html

             Home
                                                           lastpage.html
         </a>

        Link to the last page
         <a href="lastpage.html">
             Go to last page
         </a>
18/04/2012        ©WCCS, ICT11: Introducing HTML                     27
Links to Email
   Example
      <a href=“mailto:rita.ict11@gmail.ca">
         Email to your teacher
      </a>

   In general
    <a href="mailto:email@address">
        link name
    </a>


18/04/2012       ©WCCS, ICT11: Introducing HTML   28
Link to an Anchor Point:
   Example

                   For more information
<a href=“#tips”>   jump to the Useful Tips Section   </a>


                   ……………………………………
                   ……………………………………
                   ……………………………………
                   ……………………………………
                   …………………………

<a name=“tips”> Useful Tips </a>
                   Always use closing tags.



18/04/2012                 ©WCCS, ICT11: Introducing HTML   29
Links to Text on the Same Page
   Create the anchor point (target, bookmark) on the same
    page
             <a name=“target_name">
                  target text
             </a>
   Link to the anchor point
             <a href="#target_name">
                    name of the link
             </a>


18/04/2012               ©WCCS, ICT11: Introducing HTML   30
Demo 6: Hyperlinks
  <p>
     <font face = “Helvetica”>
          Last summer I travelled to

             <a href = "http://mexico-travel.com/">
                Mexico
             </a>.

     </font>
  </p>


  <a href = "mailto:rita.ict11@gmail.com">
     Email to Webmaster
  </a>
18/04/2012                ©WCCS, ICT11: Introducing HTML   31
Tags for Graphics
   Horizontal Rule
    <hr
      align= "left| center| right"
      size="n"
      width= "n | n%"
      color="color value" >

   Img Tag

18/04/2012    ©WCCS, ICT11: Introducing HTML   32
Adding Images: Examples
   Example 1
    <img src="homer.gif">

   Example 2
       <img src=   "images/switzerland.jpg”>
            alt=   "switzerland"
            border="2"
            align= "right">


18/04/2012        ©WCCS, ICT11: Introducing HTML   33
The img Tag
<img
             src = "file_path/file_name"
             alt = "alternative text"
             border = "n"
             align = "left|right|
                    top| bottom| center|middle"
             height = "n"
             width = "n" >


18/04/2012           ©WCCS, ICT11: Introducing HTML   34
Demo 7: Graphics
  <p>
     <font face = “Helvetica”>
          Last summer I travelled to
          <a href = "http://mexico-travel.com/">
               Mexico
           </a>.

             <img src="images/mexicomap.gif"
                  alt=“Mexico Map"
                  align="top">
             <hr>

     </font>
  </p>


18/04/2012                 ©WCCS, ICT11: Introducing HTML   35
Graphics and Copyrights
    Copyright                        No copyright
         Graphics on Web                  Online freeware
          pages                            Clips from MS
         Postcards and other              Your own digital
          prints                            photos
         Logos




18/04/2012             ©WCCS, ICT11: Introducing HTML          36
Sources
  Chapter 3 in:               Boulton, J. HTML Tutorial.
   Presley, Bruce, Beth         Feb. 10, 2005
   Brown, and Elaine Malfas:
   A Guide to Web Authoring     <http://peacock.mjsd1.ca/~j
   using Microsoft Frontpage    boulton/webdesign/tutorials
   2000. Pennington:            /HTML/default.htm>
   Lawrenceville Press, 2001.  W3Schools Online Web
  Reference HTML               Tutorials. Mar. 14, 2006
   Cheatsheet. Webmonkey.       <http://www.w3schools.com
   Feb. 08, 2005                /html/default.asp >
   <http://webmonkey.wired.c
   om/webmonkey/reference/h
   tml_cheatsheet/>


18/04/2012          ©WCCS, ICT11: Introducing HTML     37

More Related Content

PPTX
Html
PPT
1. html introduction
PPTX
Very basic intro to HTML
PPTX
Html.ppt
PPT
PPTX
HTML Introduction, HTML History, HTML Uses, HTML benifits
PDF
3. tutorial html web desain
PPT
What is HTML- d3brand.com
Html
1. html introduction
Very basic intro to HTML
Html.ppt
HTML Introduction, HTML History, HTML Uses, HTML benifits
3. tutorial html web desain
What is HTML- d3brand.com

What's hot (20)

PPTX
Learning HTML
PPTX
PPTX
Introducing to html
PDF
Lesson 1: Introduction to HTML
ODP
How to Make HTML and CSS Files
PPTX
Web design 101
PPTX
Introduction to HTML
PPT
Lesson 2: Getting To Know HTML
PPTX
HTML 5 Tutorial
PPTX
Web development basics
PPT
Basics tags for HTML
PPT
PPTX
How to create basic webpage
PPTX
Artistic Web Applications - Week3 - Part 3
PPTX
Web1O1 - Intro to HTML/CSS
PPTX
Introduction to HTML
PDF
Html beginner
PDF
Web Development Workshop (Front End)
PDF
Intro to HTML
Learning HTML
Introducing to html
Lesson 1: Introduction to HTML
How to Make HTML and CSS Files
Web design 101
Introduction to HTML
Lesson 2: Getting To Know HTML
HTML 5 Tutorial
Web development basics
Basics tags for HTML
How to create basic webpage
Artistic Web Applications - Week3 - Part 3
Web1O1 - Intro to HTML/CSS
Introduction to HTML
Html beginner
Web Development Workshop (Front End)
Intro to HTML
Ad

Viewers also liked (20)

PDF
A La Feina Iguals Per La Igualtat Home Dona
ODP
Dmap Solution
PPTX
Presentatie Buitenplaats Vaeshartelt 2013
DOC
DDRR Chapter Three
PDF
Html Practice
PDF
Two Sides - EMA 2012 Spring Conference
PDF
Theorists
PPT
Als H-en-W Beweegt, Veranderen Mensen!
PPTX
Cum sa atragi clienti prin campanii de emailing
PPTX
Cum sa faci plati rapide pe Internet
PPT
How To Build A High Profit Business
ODP
Presentacion triton
PPSX
Serkan, sergi, izan i denís
PPS
Calendario 2010 Egutegia
PPTX
PPT
Emulation: Machines Within Machines
PPS
DOC
DDRR Chapter Five
PDF
Four tourism destinations tourism marketing turistico n.4 four tourism
PPTX
Datos suecia diaeuropa_ingles_gestion
A La Feina Iguals Per La Igualtat Home Dona
Dmap Solution
Presentatie Buitenplaats Vaeshartelt 2013
DDRR Chapter Three
Html Practice
Two Sides - EMA 2012 Spring Conference
Theorists
Als H-en-W Beweegt, Veranderen Mensen!
Cum sa atragi clienti prin campanii de emailing
Cum sa faci plati rapide pe Internet
How To Build A High Profit Business
Presentacion triton
Serkan, sergi, izan i denís
Calendario 2010 Egutegia
Emulation: Machines Within Machines
DDRR Chapter Five
Four tourism destinations tourism marketing turistico n.4 four tourism
Datos suecia diaeuropa_ingles_gestion
Ad

Similar to Introducing HTML (20)

PPTX
Database System Html Basics Complete Topic.pptx
PPTX
4. html css-java script-basics
PPTX
4. html css-java script-basics
PPTX
4. html css-java script-basics
PPTX
POLITEKNIK MALAYSIA
PPTX
HTML web design_ an introduction to design
PPTX
Html css java script basics All about you need
PDF
If you know nothing about HTML, this is where you can start !!
PPTX
html introduction - recover.pptxdbgbddbbd
DOC
Updated html programs
PPTX
HTML Basic, CSS Basic, JavaScript basic.
PDF
Html Layout Explained
PPTX
HTML Fundamentals
PPTX
3 1-html-fundamentals-110302100520-phpapp02
PDF
Webpage Designing in HTML
PPTX
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
PPTX
Additional HTML
PPT
HyperTextMarkupLanguage.ppt
PPTX
HTML and DHTML
Database System Html Basics Complete Topic.pptx
4. html css-java script-basics
4. html css-java script-basics
4. html css-java script-basics
POLITEKNIK MALAYSIA
HTML web design_ an introduction to design
Html css java script basics All about you need
If you know nothing about HTML, this is where you can start !!
html introduction - recover.pptxdbgbddbbd
Updated html programs
HTML Basic, CSS Basic, JavaScript basic.
Html Layout Explained
HTML Fundamentals
3 1-html-fundamentals-110302100520-phpapp02
Webpage Designing in HTML
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
Additional HTML
HyperTextMarkupLanguage.ppt
HTML and DHTML

More from ritaester (7)

PPTX
Relational Databases
PPT
Computers
PPT
Computer Software
PPT
Vocab Hw
PPT
Vocab Sw
PPT
Computer Data Representation
PPT
Computer Hardware
Relational Databases
Computers
Computer Software
Vocab Hw
Vocab Sw
Computer Data Representation
Computer Hardware

Recently uploaded (20)

PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Modernizing your data center with Dell and AMD
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Machine learning based COVID-19 study performance prediction
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced Soft Computing BINUS July 2025.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Understanding_Digital_Forensics_Presentation.pptx
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
The AUB Centre for AI in Media Proposal.docx
Advanced methodologies resolving dimensionality complications for autism neur...
Dropbox Q2 2025 Financial Results & Investor Presentation
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Empathic Computing: Creating Shared Understanding
Modernizing your data center with Dell and AMD
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Unlocking AI with Model Context Protocol (MCP)
Machine learning based COVID-19 study performance prediction
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Per capita expenditure prediction using model stacking based on satellite ima...
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced Soft Computing BINUS July 2025.pdf
Big Data Technologies - Introduction.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Introducing HTML

  • 2. What is HTML? Hypertext Markup Language Specifies the structure of a web page: Contents How the page is displayed Platform independent Can be interpreted by any computer regardless of the hardware or operating system. 18/04/2012 ©WCCS, ICT11: Introducing HTML 2
  • 3. How to find HTML?  Open IE  Open a web page e.g. http://www.biblegateway. com/  Use the command View  Source  Notepad opens with the HTML code of the web page 18/04/2012 ©WCCS, ICT11: Introducing HTML 3
  • 4. Tags  Example: Words/ characters in angled brackets <p> Opening Tag This is a paragraph. <p> </p> Closing Tag </p> Enclose what has to be formatted 18/04/2012 ©WCCS, ICT11: Introducing HTML 4
  • 5. Structure of an HTML Document <html> <head> </head> <body> </body> </html> 18/04/2012 ©WCCS, ICT11: Introducing HTML 5
  • 6. Document Tags <html> <head> <title> Document Title </title> </head> <body> Content of the page </body> </html> 18/04/2012 ©WCCS, ICT11: Introducing HTML 6
  • 7. Demo 1: Your First Web Page <html> <head> <title>My First Home Page</title> </head> <body> <!--Here is the text for display --> Hi folks, my name is Chris Brown. </body> </html> 18/04/2012 ©WCCS, ICT11: Introducing HTML 7
  • 8. Tags and Attributes  Attributes are added to tags  Example <body bgcolor = “red” text = “#0000FF”> This shows blue text on red background </body> 18/04/2012 ©WCCS, ICT11: Introducing HTML 8
  • 9. Demo 2: Change Page Colours <html> <head> <title>My First Home Page</title> </head> <body bgcolor = “yellow” text = “#000033 “> <!--text dark blue on yellow background --> Hi folks, my name is Chris Brown. </body> </html> 18/04/2012 ©WCCS, ICT11: Introducing HTML 9
  • 10. Tags for Header Formatting <h1> Heading 1 </h1> ... Smaller font <h6> Heading 6 </h6>  Define the font size  Define space above and below  Example: <h1> My Vacation to Mexico </h1> Browser display: My Vacation to Mexico 18/04/2012 ©WCCS, ICT11: Introducing HTML 10
  • 11. Demo 3: Use Heading Tags <html> <head> <title>My Vacation Page</title> </head> <body> <h1> My Vacation to Mexico </h1> </body> </html> 18/04/2012 ©WCCS, ICT11: Introducing HTML 11
  • 12. Tags for Paragraph Formatting  Paragraph Tag <p>  <p> This is a paragraph </p>  Text of the paragraph wraps  After the paragraph: blank line  Break Tag <br>  Line Break, like ENTER key  No closing tag 18/04/2012 ©WCCS, ICT11: Introducing HTML 12
  • 13. Paragraph Alignment  Default: left aligned  Attribute added to the paragraph tag <p align="center"> This is a centered paragraph </p> <p align="right"> This is a right aligned paragraph </p> 18/04/2012 ©WCCS, ICT11: Introducing HTML 13
  • 14. Demo 4: Paragraph Tags <html> <head> <title>My Vacation Page</title> </head> <body> <h1> My Vacation to Mexico </h1> <p> Last summer I travelled to Mexico. </p> <br> </body> </html> 18/04/2012 ©WCCS, ICT11: Introducing HTML 14
  • 15. Change Fonts: An Example <p> <font face="arial, helvetica, tahoma" size = "4" color="red"> This paragraph is shown in Arial, size 4, color red </font> </p> 18/04/2012 ©WCCS, ICT11: Introducing HTML 15
  • 16. Tag for Font Setting <font face="face1[,face2][,face3]" size="n | +n | -n" color="color value"> text to be displayed </font> Default Font: Times New Roman, size 3 (point 12) Sizes from 1..7 18/04/2012 ©WCCS, ICT11: Introducing HTML 16
  • 17. More Tags for Text Formatting Physical Logical Style Meaning Style <b> ... </b> <strong>...</strong> bold <i> ... </i> <em> ...</em> italic Examples <strong> These words are bold </strong> <i> These words are italic </i> Use logical styles rather than physical 18/04/2012 ©WCCS, ICT11: Introducing HTML 17
  • 18. Demo 5: Text Formatting <body> <h1> My Vacation to Mexico </h1> <p> <font face = “Verdana”> Last summer I travelled to <strong>Mexico</strong>. </font> </p> <br> </body> 18/04/2012 ©WCCS, ICT11: Introducing HTML 18
  • 19. Unordered Lists with HTML  Example ∙ Photos ∙ Videos  In HTML <ul> <li>Photos</li> <li>Videos</li> ... </ul> 18/04/2012 ©WCCS, ICT11: Introducing HTML 19
  • 20. Ordered Lists with HTML Example 1. Cut out the shapes 2. Assemble the shapes In HTML <ol> <li>Cut out the shapes</li> <li>Assemble the shapes</li> ... </ol> 18/04/2012 ©WCCS, ICT11: Introducing HTML 20
  • 21. Tables in HTML: Example <table> <tr> <td> Sugar </td> <td> Salt </td> Sugar Salt Peppper <td> Pepper </td> </tr> Sucre Sel Poivre <tr> <td> Sucre </td> <td> Sel </td> <td> Poivre </td> </tr> </table> 18/04/2012 ©WCCS, ICT11: Introducing HTML 21
  • 22. Table Tags <table>...</table> for the entire table <tr>...</tr> for a row <td>...</td> for the cells, or columns, in each row table data tags 18/04/2012 ©WCCS, ICT11: Introducing HTML 22
  • 23. Tables for Page Layout To design the layout structure of a web page Table without the borders showing Text stays inside it„s column borders Example 18/04/2012 ©WCCS, ICT11: Introducing HTML 23
  • 24. HTML Code of the Example <table border="1" cellpadding="0" cellspacing="0" width="100%" height="550"> <tr> <td valign="top" colspan="2" height="75"> <!--Here goes the page title-> <h1> Title </h1> </td> </tr> <tr> <td valign="top" width="10%"> <!--This is the navigation pane, the buttons--> <b> Buttons </b> </td> <td valign="top" width="90%"> <!--This is content--> <b> Here goes the content</b> </td> </tr> </table> 18/04/2012 ©WCCS, ICT11: Introducing HTML 24
  • 25. Hyperlinks Example: GOOGLE to any other Web page Locally - in the web site, the page belongs to Globally - on the entire Web to text on the same page to other documents to e-mail 18/04/2012 ©WCCS, ICT11: Introducing HTML 25
  • 26. Links to Global Web Pages Example <a href=“http://www.google.com”> GOOGLE GOOGLE </a> In general <a href="URL"> name of the link </a> 18/04/2012 ©WCCS, ICT11: Introducing HTML 26
  • 27. Links to Local Web Pages Pages in the same folder Link to the homepage <a href="index.html"> index.html Home lastpage.html </a> Link to the last page <a href="lastpage.html"> Go to last page </a> 18/04/2012 ©WCCS, ICT11: Introducing HTML 27
  • 28. Links to Email Example <a href=“mailto:rita.ict11@gmail.ca"> Email to your teacher </a> In general <a href="mailto:email@address"> link name </a> 18/04/2012 ©WCCS, ICT11: Introducing HTML 28
  • 29. Link to an Anchor Point: Example For more information <a href=“#tips”> jump to the Useful Tips Section </a> …………………………………… …………………………………… …………………………………… …………………………………… ………………………… <a name=“tips”> Useful Tips </a> Always use closing tags. 18/04/2012 ©WCCS, ICT11: Introducing HTML 29
  • 30. Links to Text on the Same Page  Create the anchor point (target, bookmark) on the same page <a name=“target_name"> target text </a>  Link to the anchor point <a href="#target_name"> name of the link </a> 18/04/2012 ©WCCS, ICT11: Introducing HTML 30
  • 31. Demo 6: Hyperlinks <p> <font face = “Helvetica”> Last summer I travelled to <a href = "http://mexico-travel.com/"> Mexico </a>. </font> </p> <a href = "mailto:rita.ict11@gmail.com"> Email to Webmaster </a> 18/04/2012 ©WCCS, ICT11: Introducing HTML 31
  • 32. Tags for Graphics Horizontal Rule <hr align= "left| center| right" size="n" width= "n | n%" color="color value" > Img Tag 18/04/2012 ©WCCS, ICT11: Introducing HTML 32
  • 33. Adding Images: Examples Example 1 <img src="homer.gif"> Example 2 <img src= "images/switzerland.jpg”> alt= "switzerland" border="2" align= "right"> 18/04/2012 ©WCCS, ICT11: Introducing HTML 33
  • 34. The img Tag <img src = "file_path/file_name" alt = "alternative text" border = "n" align = "left|right| top| bottom| center|middle" height = "n" width = "n" > 18/04/2012 ©WCCS, ICT11: Introducing HTML 34
  • 35. Demo 7: Graphics <p> <font face = “Helvetica”> Last summer I travelled to <a href = "http://mexico-travel.com/"> Mexico </a>. <img src="images/mexicomap.gif" alt=“Mexico Map" align="top"> <hr> </font> </p> 18/04/2012 ©WCCS, ICT11: Introducing HTML 35
  • 36. Graphics and Copyrights  Copyright  No copyright  Graphics on Web  Online freeware pages  Clips from MS  Postcards and other  Your own digital prints photos  Logos 18/04/2012 ©WCCS, ICT11: Introducing HTML 36
  • 37. Sources  Chapter 3 in:  Boulton, J. HTML Tutorial. Presley, Bruce, Beth Feb. 10, 2005 Brown, and Elaine Malfas: A Guide to Web Authoring <http://peacock.mjsd1.ca/~j using Microsoft Frontpage boulton/webdesign/tutorials 2000. Pennington: /HTML/default.htm> Lawrenceville Press, 2001.  W3Schools Online Web  Reference HTML Tutorials. Mar. 14, 2006 Cheatsheet. Webmonkey. <http://www.w3schools.com Feb. 08, 2005 /html/default.asp > <http://webmonkey.wired.c om/webmonkey/reference/h tml_cheatsheet/> 18/04/2012 ©WCCS, ICT11: Introducing HTML 37

Editor's Notes

  • #10: Index2.html
  • #11: My_Vacation_Page3.html
  • #14: My_Vacation_Page5.html
  • #26: My_Vacation_page7.html