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

What's hot (20)

Learning HTML
Learning HTMLLearning HTML
Learning HTML
Desarae Veit
 
HTML
HTMLHTML
HTML
Jayant Mewara
 
Introducing to html
Introducing to htmlIntroducing to html
Introducing to html
Ishaan Arora
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
Olivia Moran
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS Files
LearningNerd
 
Web design 101
Web design 101Web design 101
Web design 101
Rozell Sneede
 
Html
HtmlHtml
Html
Alisha Kalidhar
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Ann Alcid
 
Lesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTMLLesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTML
Olivia Moran
 
HTML 5 Tutorial
HTML 5 TutorialHTML 5 Tutorial
HTML 5 Tutorial
Tahasin Chowdhury
 
Web development basics
Web development basicsWeb development basics
Web development basics
Kalluri Vinay Reddy
 
Basics tags for HTML
Basics tags for HTMLBasics tags for HTML
Basics tags for HTML
vidyamittal
 
HTML
HTMLHTML
HTML
Rahul Jain
 
How to create basic webpage
How to create basic webpageHow to create basic webpage
How to create basic webpage
James Erro
 
Artistic Web Applications - Week3 - Part 3
Artistic Web Applications - Week3 - Part 3Artistic Web Applications - Week3 - Part 3
Artistic Web Applications - Week3 - Part 3
Katherine McCurdy-Lapierre, R.G.D.
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
NYCSS Meetup
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
selcukca84
 
Html beginner
Html beginnerHtml beginner
Html beginner
wihrbt
 
Web Development Workshop (Front End)
Web Development Workshop (Front End)Web Development Workshop (Front End)
Web Development Workshop (Front End)
DSCIIITLucknow
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
Gerson Abesamis
 

Viewers also liked (20)

A La Feina Iguals Per La Igualtat Home Dona
A La Feina Iguals   Per La Igualtat Home DonaA La Feina Iguals   Per La Igualtat Home Dona
A La Feina Iguals Per La Igualtat Home Dona
Departament de Treball - Generalitat de Catalunya
 
Dmap Solution
Dmap SolutionDmap Solution
Dmap Solution
DMAP
 
Presentatie Buitenplaats Vaeshartelt 2013
Presentatie Buitenplaats Vaeshartelt 2013Presentatie Buitenplaats Vaeshartelt 2013
Presentatie Buitenplaats Vaeshartelt 2013
Toos Hofstede
 
DDRR Chapter Three
DDRR Chapter ThreeDDRR Chapter Three
DDRR Chapter Three
holleyberry
 
Html Practice
Html PracticeHtml Practice
Html Practice
ritaester
 
Two Sides - EMA 2012 Spring Conference
Two Sides - EMA 2012 Spring ConferenceTwo Sides - EMA 2012 Spring Conference
Two Sides - EMA 2012 Spring Conference
Phil Riebel
 
Theorists
TheoristsTheorists
Theorists
Judith Gunn
 
Als H-en-W Beweegt, Veranderen Mensen!
Als H-en-W Beweegt, Veranderen Mensen!Als H-en-W Beweegt, Veranderen Mensen!
Als H-en-W Beweegt, Veranderen Mensen!
houdingenwerk
 
Cum sa atragi clienti prin campanii de emailing
Cum sa atragi clienti prin campanii de emailingCum sa atragi clienti prin campanii de emailing
Cum sa atragi clienti prin campanii de emailing
eComunitate.ro
 
Cum sa faci plati rapide pe Internet
Cum sa faci plati rapide pe InternetCum sa faci plati rapide pe Internet
Cum sa faci plati rapide pe Internet
eComunitate.ro
 
How To Build A High Profit Business
How To Build A High Profit BusinessHow To Build A High Profit Business
How To Build A High Profit Business
Shawn Murphy
 
Presentacion triton
Presentacion tritonPresentacion triton
Presentacion triton
sonia
 
Serkan, sergi, izan i denís
Serkan, sergi, izan i denísSerkan, sergi, izan i denís
Serkan, sergi, izan i denís
bsole3
 
Calendario 2010 Egutegia
Calendario 2010 EgutegiaCalendario 2010 Egutegia
Calendario 2010 Egutegia
mendikolagunak
 
Emulation: Machines Within Machines
Emulation: Machines Within MachinesEmulation: Machines Within Machines
Emulation: Machines Within Machines
School
 
DDRR Chapter Five
DDRR Chapter FiveDDRR Chapter Five
DDRR Chapter Five
holleyberry
 
Four tourism destinations tourism marketing turistico n.4 four tourism
Four tourism destinations tourism marketing turistico n.4 four tourismFour tourism destinations tourism marketing turistico n.4 four tourism
Four tourism destinations tourism marketing turistico n.4 four tourism
FTourism & Marketing
 
Datos suecia diaeuropa_ingles_gestion
Datos suecia diaeuropa_ingles_gestionDatos suecia diaeuropa_ingles_gestion
Datos suecia diaeuropa_ingles_gestion
Colegio Rafaela Ybarra
 
Dmap Solution
Dmap SolutionDmap Solution
Dmap Solution
DMAP
 
Presentatie Buitenplaats Vaeshartelt 2013
Presentatie Buitenplaats Vaeshartelt 2013Presentatie Buitenplaats Vaeshartelt 2013
Presentatie Buitenplaats Vaeshartelt 2013
Toos Hofstede
 
DDRR Chapter Three
DDRR Chapter ThreeDDRR Chapter Three
DDRR Chapter Three
holleyberry
 
Html Practice
Html PracticeHtml Practice
Html Practice
ritaester
 
Two Sides - EMA 2012 Spring Conference
Two Sides - EMA 2012 Spring ConferenceTwo Sides - EMA 2012 Spring Conference
Two Sides - EMA 2012 Spring Conference
Phil Riebel
 
Als H-en-W Beweegt, Veranderen Mensen!
Als H-en-W Beweegt, Veranderen Mensen!Als H-en-W Beweegt, Veranderen Mensen!
Als H-en-W Beweegt, Veranderen Mensen!
houdingenwerk
 
Cum sa atragi clienti prin campanii de emailing
Cum sa atragi clienti prin campanii de emailingCum sa atragi clienti prin campanii de emailing
Cum sa atragi clienti prin campanii de emailing
eComunitate.ro
 
Cum sa faci plati rapide pe Internet
Cum sa faci plati rapide pe InternetCum sa faci plati rapide pe Internet
Cum sa faci plati rapide pe Internet
eComunitate.ro
 
How To Build A High Profit Business
How To Build A High Profit BusinessHow To Build A High Profit Business
How To Build A High Profit Business
Shawn Murphy
 
Presentacion triton
Presentacion tritonPresentacion triton
Presentacion triton
sonia
 
Serkan, sergi, izan i denís
Serkan, sergi, izan i denísSerkan, sergi, izan i denís
Serkan, sergi, izan i denís
bsole3
 
Calendario 2010 Egutegia
Calendario 2010 EgutegiaCalendario 2010 Egutegia
Calendario 2010 Egutegia
mendikolagunak
 
Emulation: Machines Within Machines
Emulation: Machines Within MachinesEmulation: Machines Within Machines
Emulation: Machines Within Machines
School
 
DDRR Chapter Five
DDRR Chapter FiveDDRR Chapter Five
DDRR Chapter Five
holleyberry
 
Four tourism destinations tourism marketing turistico n.4 four tourism
Four tourism destinations tourism marketing turistico n.4 four tourismFour tourism destinations tourism marketing turistico n.4 four tourism
Four tourism destinations tourism marketing turistico n.4 four tourism
FTourism & Marketing
 
Ad

Similar to Introducing HTML (20)

Database System Html Basics Complete Topic.pptx
Database System Html Basics Complete Topic.pptxDatabase System Html Basics Complete Topic.pptx
Database System Html Basics Complete Topic.pptx
rockysaad553
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
Minea Chem
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
xu fag
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
Nikita Garg
 
HTML web design_ an introduction to design
HTML web design_ an introduction to designHTML web design_ an introduction to design
HTML web design_ an introduction to design
SureshSingh142
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
Dipen Parmar
 
Html
HtmlHtml
Html
B. Randhir Prasad Yadav
 
If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!
Dr Sukhpal Singh Gill
 
html introduction - recover.pptxdbgbddbbd
html introduction - recover.pptxdbgbddbbdhtml introduction - recover.pptxdbgbddbbd
html introduction - recover.pptxdbgbddbbd
shesshheap
 
Updated html programs
Updated html programsUpdated html programs
Updated html programs
Deepali54
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
Html Layout Explained
Html Layout ExplainedHtml Layout Explained
Html Layout Explained
21 Lessons
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
BG Java EE Course
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
Aditya Varma
 
Webpage Designing in HTML
Webpage Designing  in HTMLWebpage Designing  in HTML
Webpage Designing in HTML
Humera Gull
 
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptxHTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
shahmirmirza30
 
Additional HTML
Additional HTML Additional HTML
Additional HTML
Doeun KOCH
 
HyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.pptHyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.ppt
DrShamikTiwari
 
HTML and DHTML
HTML and DHTMLHTML and DHTML
HTML and DHTML
Dr. SURBHI SAROHA
 
Database System Html Basics Complete Topic.pptx
Database System Html Basics Complete Topic.pptxDatabase System Html Basics Complete Topic.pptx
Database System Html Basics Complete Topic.pptx
rockysaad553
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
Minea Chem
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
xu fag
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
Nikita Garg
 
HTML web design_ an introduction to design
HTML web design_ an introduction to designHTML web design_ an introduction to design
HTML web design_ an introduction to design
SureshSingh142
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
Dipen Parmar
 
If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!
Dr Sukhpal Singh Gill
 
html introduction - recover.pptxdbgbddbbd
html introduction - recover.pptxdbgbddbbdhtml introduction - recover.pptxdbgbddbbd
html introduction - recover.pptxdbgbddbbd
shesshheap
 
Updated html programs
Updated html programsUpdated html programs
Updated html programs
Deepali54
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
Html Layout Explained
Html Layout ExplainedHtml Layout Explained
Html Layout Explained
21 Lessons
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
Aditya Varma
 
Webpage Designing in HTML
Webpage Designing  in HTMLWebpage Designing  in HTML
Webpage Designing in HTML
Humera Gull
 
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptxHTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
shahmirmirza30
 
Additional HTML
Additional HTML Additional HTML
Additional HTML
Doeun KOCH
 
HyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.pptHyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.ppt
DrShamikTiwari
 
Ad

More from ritaester (7)

Relational Databases
Relational DatabasesRelational Databases
Relational Databases
ritaester
 
Computers
ComputersComputers
Computers
ritaester
 
Computer Software
Computer SoftwareComputer Software
Computer Software
ritaester
 
Vocab Hw
Vocab HwVocab Hw
Vocab Hw
ritaester
 
Vocab Sw
Vocab SwVocab Sw
Vocab Sw
ritaester
 
Computer Data Representation
Computer Data RepresentationComputer Data Representation
Computer Data Representation
ritaester
 
Computer Hardware
Computer HardwareComputer Hardware
Computer Hardware
ritaester
 
Relational Databases
Relational DatabasesRelational Databases
Relational Databases
ritaester
 
Computer Software
Computer SoftwareComputer Software
Computer Software
ritaester
 
Computer Data Representation
Computer Data RepresentationComputer Data Representation
Computer Data Representation
ritaester
 
Computer Hardware
Computer HardwareComputer Hardware
Computer Hardware
ritaester
 

Recently uploaded (20)

ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
 
Dev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API WorkflowsDev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API Workflows
UiPathCommunity
 
Introducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and ARIntroducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and AR
Safe Software
 
Securiport - A Border Security Company
Securiport  -  A Border Security CompanySecuriport  -  A Border Security Company
Securiport - A Border Security Company
Securiport
 
Co-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using ProvenanceCo-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using Provenance
Paul Groth
 
AI Emotional Actors: “When Machines Learn to Feel and Perform"
AI Emotional Actors:  “When Machines Learn to Feel and Perform"AI Emotional Actors:  “When Machines Learn to Feel and Perform"
AI Emotional Actors: “When Machines Learn to Feel and Perform"
AkashKumar809858
 
Jeremy Millul - A Talented Software Developer
Jeremy Millul - A Talented Software DeveloperJeremy Millul - A Talented Software Developer
Jeremy Millul - A Talented Software Developer
Jeremy Millul
 
Introducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRCIntroducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRC
Adtran
 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
Grannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI ExperiencesGrannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI Experiences
Lauren Parr
 
The case for on-premises AI
The case for on-premises AIThe case for on-premises AI
The case for on-premises AI
Principled Technologies
 
SDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhereSDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhere
Adtran
 
STKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 versionSTKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 version
Dr. Jimmy Schwarzkopf
 
Measuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI SuccessMeasuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI Success
Nikki Chapple
 
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath InsightsUiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPathCommunity
 
AI Trends - Mary Meeker
AI Trends - Mary MeekerAI Trends - Mary Meeker
AI Trends - Mary Meeker
Razin Mustafiz
 
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure ModesCognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Dr. Tathagat Varma
 
Improving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevExImproving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevEx
Justin Reock
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
 
Dev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API WorkflowsDev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API Workflows
UiPathCommunity
 
Introducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and ARIntroducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and AR
Safe Software
 
Securiport - A Border Security Company
Securiport  -  A Border Security CompanySecuriport  -  A Border Security Company
Securiport - A Border Security Company
Securiport
 
Co-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using ProvenanceCo-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using Provenance
Paul Groth
 
AI Emotional Actors: “When Machines Learn to Feel and Perform"
AI Emotional Actors:  “When Machines Learn to Feel and Perform"AI Emotional Actors:  “When Machines Learn to Feel and Perform"
AI Emotional Actors: “When Machines Learn to Feel and Perform"
AkashKumar809858
 
Jeremy Millul - A Talented Software Developer
Jeremy Millul - A Talented Software DeveloperJeremy Millul - A Talented Software Developer
Jeremy Millul - A Talented Software Developer
Jeremy Millul
 
Introducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRCIntroducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRC
Adtran
 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
Grannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI ExperiencesGrannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI Experiences
Lauren Parr
 
SDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhereSDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhere
Adtran
 
STKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 versionSTKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 version
Dr. Jimmy Schwarzkopf
 
Measuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI SuccessMeasuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI Success
Nikki Chapple
 
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath InsightsUiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPathCommunity
 
AI Trends - Mary Meeker
AI Trends - Mary MeekerAI Trends - Mary Meeker
AI Trends - Mary Meeker
Razin Mustafiz
 
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure ModesCognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Dr. Tathagat Varma
 
Improving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevExImproving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevEx
Justin Reock
 

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:[email protected]"> 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:[email protected]"> 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