SlideShare a Scribd company logo
1 of 16
INFT11/71-132
     Web Applications


HTML and XHTML
      Dr Michael Rees
School of Information Technology

      mrees@bond.edu.au
History of HTML

• HTML defined using SGML for the general layout of
  web pages

• HTML 4.01 – 1999

• XHTML 1.0 – 2000: HTML 4.01 defined using XML
   – Modular: Strict, Transitional, Frameset
   – Syntax can be validated at W3C

• XHTML 1.1 – 2001: Modularized 1.0, no frames

• HTML 5: to be the next standard


© 2009 Michael Rees                Web Applications   2
Hypertext Markup Language

• Text-based markup language for web pages

• Defines:
   – Page content: text, images, audio-visual, executable
     behaviour (JavaScript)
   – Page structure: different types of content (paragraphs,
     headings, lists, tables, links, and so on)
   – Page presentation: deprecated in favour of CSS

• HTML comprises:
          – Elements or tags, tag attributes, and content
          – Character entities: single special characters
          – Data types: URI, colour, ID, units, dates, encoding
© 2009 Michael Rees                 Web Applications              3
Dynamic HTML
• An old marketing term
• Browsers read (X)HTML to create an in-memory Document
  Object Model (DOM)
• JavaScript code within a web page is able to access and
  change the DOM contents
• Browsers detect DOM changes and immediately redisplay
  the content dynamically – hence the name
• Enables:
   – responsive graphical user interface controls
   – effects such as animation, drag and drop & so on
• Different browsers use different JavaScript notation for the
  DOM contents
© 2009 Michael Rees              Web Applications        4
HTML Components

• head tag
   – title (regard as mandatory)
   – styles
   – metadata—content description

• body tag—page content
   – headings
   – body paragraphs
   – lists
   – Tables

• JavaScript: in head or body
© 2009 Michael Rees              Web Applications   5
HTML Basics

• HTML consists of plain text interspersed with HTML tags

• tags are enclosed in ‗<‘ and ‗>‘ angle brackets
   – eg <title> or <head>, lowercase spelling is required in
     XHTML

• tags have content enclosed within start and ending forms:
   – <title> ...title text... </title>

• empty tags start and end in one tag:
          – <hr/> equivalent to <hr></hr>

• <!-- one or more lines of comment -->


© 2009 Michael Rees                 Web Applications    6
HTML Components
                                                               DTD Declaration


                                                           XML Namespace




                                                          Attribute, value in quotes


                                                                  Entity


                                                     Closed tag



                                                   Empty tag




© 2009 Michael Rees             Web Applications                                 7
Character Entities

• common characters ‗<‗, ‗>‗ and ‗&‘
          –     &lt; for <
          –     &gt; for >
          –     &amp; for &
          –     &copy; for © (ALT+0169)
          –     &nbsp; non-breaking space

• accented characters
          –     é is written &eacute;
          –     è is written &egrave;
          –     ñ is written &ntilde;
          –     æ is written &aelig;

© 2009 Michael Rees                     Web Applications   8
XHTML Lists
          <p>Academic Senate ... following matters:
          <ul>
           <li>the formulation and development of ...
           <li> regulatory provisions for ...
          </ul>
          <h2>Composition</h2>
          <dl>
           <dt>Executive Chancellor: ...
           <dt>Deans of Schools</dt>
          <dd>Business: ...
          <dd>Humanities ..
          </dl>


© 2009 Michael Rees                   Web Applications   9
Paragraph types

• <pre> ... </pre>
   – preformatted text in fixed-width font
   – spaces, tabs, newlines are significant

• <blockquote> ... </blockquote>
   – as <p> but indented left and right

• <address> ... </address>
   – italics
   – used for address and identification
     information, usually at end of document

© 2009 Michael Rees                Web Applications   10
Tables
• Tags for table building are:
   – <table> ... </table> whole table definition
   – <tr> ...</tr> surround a single row
   – <td> ...</td> surround a single cell in a row
   – <th> ... </th> surround a header (title) cell
   – <caption> ... </caption> surround heading and
     footing captions
• Tables may be nested within tables




© 2009 Michael Rees            Web Applications   11
Table Example

        <table border="1" >
        <tr align="center" valign="center">
         <th>Code</th>
         <th>Item</th>
         <th>Note</th>
         <th>Price</th>
        </tr>
        <tr>
         <td>P125</td>
         <td>Glucose Tester</td>
         <td>Pain-free</td>
         <td>$28.99</td>
        </tr>
        <tr>
         <td>D652</td>
         <td>Bandage Kit</td>
         <td>Long stick</td>
         <td>$8.95</td>
        </tr>
        </table>




© 2009 Michael Rees                           Web Applications   12
Container Tags

• Container tags allow a group of tags (page fragment)
  to be accessed as a single tag
   – Single id attribute
   – Apply style to whole container
   – Respond to events in whole container

• <div>
   – Always starts a new line in the page

• <span>
   – No line break
   – Words and characters within one line
© 2009 Michael Rees                Web Applications   13
Links

• Hyperlink to any web resource

• Specifies a resource address:
   – Pathname to file – relative link
   – URL – absolute link

• Uses the anchor <a> tag with an href attribute:
   – <a href=―http://www.bond.edu.au‖> Bond
     Uni</a>

• Set target within a page: <p id=―target‖></p>
  then use <a href=―#target‖>Target link</a>

© 2009 Michael Rees           Web Applications      14
Images
• Image specified with tag:
   – <img src="URL" alt="text description" />
   – SRC attribute: URL where image is located (can be
     anywhere)
   – ALT attribute: text displayed in special situations:
      • non-visual browsers: text shown instead of image
      • visual browsers: text shown while image loads
      • accessibility
• Supported image types:
   – GIF: Graphics Interchange Format
   – JPEG: Joint Photographic Experts Group
   – PNG: Portable Network Graphics
• Each image requires one additional request-response cycle

© 2009 Michael Rees            Web Applications               15
Resources

• Read Sections 2.1 through 2.8 of textbook




© 2009 Michael Rees               Web Applications   16

More Related Content

What's hot

Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01
Likitha47
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basics
messinam
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
chomas kandar
 

What's hot (19)

Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basics
 
Dhtml
DhtmlDhtml
Dhtml
 
Document Object Model (DOM)
Document Object Model (DOM)Document Object Model (DOM)
Document Object Model (DOM)
 
Xml applications
Xml applicationsXml applications
Xml applications
 
XML and XML Applications - Lecture 04 - Web Information Systems (WE-DINF-11912)
XML and XML Applications - Lecture 04 - Web Information Systems (WE-DINF-11912)XML and XML Applications - Lecture 04 - Web Information Systems (WE-DINF-11912)
XML and XML Applications - Lecture 04 - Web Information Systems (WE-DINF-11912)
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Css present
Css presentCss present
Css present
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
 
Document object model
Document object modelDocument object model
Document object model
 
Dhtml chapter2
Dhtml chapter2Dhtml chapter2
Dhtml chapter2
 
DHTML
DHTMLDHTML
DHTML
 
Dhtml
DhtmlDhtml
Dhtml
 
Web dev
Web devWeb dev
Web dev
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Dom
Dom Dom
Dom
 
Dhtml
DhtmlDhtml
Dhtml
 
Dom structure
Dom structureDom structure
Dom structure
 
Xhtml
XhtmlXhtml
Xhtml
 

Viewers also liked (6)

ABC Gold Coast Social Media Talk
ABC Gold Coast Social Media TalkABC Gold Coast Social Media Talk
ABC Gold Coast Social Media Talk
 
Messing with MOOCs
Messing with MOOCsMessing with MOOCs
Messing with MOOCs
 
MOOCs march on
MOOCs march onMOOCs march on
MOOCs march on
 
Developing Inside the Cloud
Developing Inside the CloudDeveloping Inside the Cloud
Developing Inside the Cloud
 
Cloud Apps Survival Of The Fittest
Cloud Apps   Survival Of The FittestCloud Apps   Survival Of The Fittest
Cloud Apps Survival Of The Fittest
 
Activity 25 reflecting on openness
Activity 25 reflecting on opennessActivity 25 reflecting on openness
Activity 25 reflecting on openness
 

Similar to INFT132 093 04 HTML and XHTML

HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
Dianajeon3
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
srp24
 

Similar to INFT132 093 04 HTML and XHTML (20)

HTML_DOM
HTML_DOMHTML_DOM
HTML_DOM
 
XML Document Object Model (DOM)
XML Document Object Model (DOM)XML Document Object Model (DOM)
XML Document Object Model (DOM)
 
The Semantic Web #2 - XML
The Semantic Web #2 - XMLThe Semantic Web #2 - XML
The Semantic Web #2 - XML
 
Xml
XmlXml
Xml
 
DOM-XML
DOM-XMLDOM-XML
DOM-XML
 
Unit iv xml dom
Unit iv xml domUnit iv xml dom
Unit iv xml dom
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
HTML 5
HTML 5HTML 5
HTML 5
 
INFT132 093 07 Document Object Model
INFT132 093 07 Document Object ModelINFT132 093 07 Document Object Model
INFT132 093 07 Document Object Model
 
Unit 01 (1).pdf
Unit 01 (1).pdfUnit 01 (1).pdf
Unit 01 (1).pdf
 
Supplement web design
Supplement web designSupplement web design
Supplement web design
 
Les Basiques - Web Développement HTML5, CSS3, JS et PHP
Les Basiques - Web  Développement HTML5, CSS3, JS et PHPLes Basiques - Web  Développement HTML5, CSS3, JS et PHP
Les Basiques - Web Développement HTML5, CSS3, JS et PHP
 
RELAX NG to DTD and XSD Using the Open Toolkit
RELAX NG to DTD and XSD Using the Open ToolkitRELAX NG to DTD and XSD Using the Open Toolkit
RELAX NG to DTD and XSD Using the Open Toolkit
 
Html and Xhtml
Html and XhtmlHtml and Xhtml
Html and Xhtml
 
Unit3wt
Unit3wtUnit3wt
Unit3wt
 
Unit3wt
Unit3wtUnit3wt
Unit3wt
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3
 

More from Michael Rees

More from Michael Rees (20)

Experiences with MOOCs: Challenges and Opportunities
Experiences with MOOCs: Challenges and OpportunitiesExperiences with MOOCs: Challenges and Opportunities
Experiences with MOOCs: Challenges and Opportunities
 
Virtualisation advances for teaching and research
Virtualisation advances for teaching and researchVirtualisation advances for teaching and research
Virtualisation advances for teaching and research
 
Building Classroom Community
Building Classroom CommunityBuilding Classroom Community
Building Classroom Community
 
Teaching with Social Media
Teaching with Social MediaTeaching with Social Media
Teaching with Social Media
 
Teaching with Social Media
Teaching with Social MediaTeaching with Social Media
Teaching with Social Media
 
Cloud Apps Ascent - Snapshot
Cloud Apps Ascent - SnapshotCloud Apps Ascent - Snapshot
Cloud Apps Ascent - Snapshot
 
INFT132 093 03 Web Concepts
INFT132 093 03 Web ConceptsINFT132 093 03 Web Concepts
INFT132 093 03 Web Concepts
 
INFT132 093 02 Internet Concepts
INFT132 093 02 Internet ConceptsINFT132 093 02 Internet Concepts
INFT132 093 02 Internet Concepts
 
Get Connected - Building a Social Media Roadmap
Get Connected - Building a Social Media RoadmapGet Connected - Building a Social Media Roadmap
Get Connected - Building a Social Media Roadmap
 
Favourite Cloud Apps
Favourite Cloud AppsFavourite Cloud Apps
Favourite Cloud Apps
 
Screencasting to Enhance Teaching Materials
Screencasting to Enhance Teaching MaterialsScreencasting to Enhance Teaching Materials
Screencasting to Enhance Teaching Materials
 
QCEC2009 Virtual IT Teaching Laboratory
QCEC2009 Virtual IT Teaching LaboratoryQCEC2009 Virtual IT Teaching Laboratory
QCEC2009 Virtual IT Teaching Laboratory
 
Screencasting At Bond
Screencasting At BondScreencasting At Bond
Screencasting At Bond
 
Social Media Club Gold Coast Meeting 2 Intro
Social Media Club Gold Coast Meeting 2 IntroSocial Media Club Gold Coast Meeting 2 Intro
Social Media Club Gold Coast Meeting 2 Intro
 
Working In The Cloud General Edition
Working In The Cloud General EditionWorking In The Cloud General Edition
Working In The Cloud General Edition
 
Working in The Cloud - Michael Rees
Working in The Cloud - Michael ReesWorking in The Cloud - Michael Rees
Working in The Cloud - Michael Rees
 
Social Media Club Gold Coast Inaugural Meeting
Social Media Club Gold Coast Inaugural MeetingSocial Media Club Gold Coast Inaugural Meeting
Social Media Club Gold Coast Inaugural Meeting
 
Twitter Slides
Twitter SlidesTwitter Slides
Twitter Slides
 
Social Media Club Gold Coast Michael Rees Slides
Social Media Club Gold Coast Michael Rees SlidesSocial Media Club Gold Coast Michael Rees Slides
Social Media Club Gold Coast Michael Rees Slides
 
For 2009
For 2009For 2009
For 2009
 

Recently uploaded

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 

Recently uploaded (20)

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 

INFT132 093 04 HTML and XHTML

  • 1. INFT11/71-132 Web Applications HTML and XHTML Dr Michael Rees School of Information Technology mrees@bond.edu.au
  • 2. History of HTML • HTML defined using SGML for the general layout of web pages • HTML 4.01 – 1999 • XHTML 1.0 – 2000: HTML 4.01 defined using XML – Modular: Strict, Transitional, Frameset – Syntax can be validated at W3C • XHTML 1.1 – 2001: Modularized 1.0, no frames • HTML 5: to be the next standard © 2009 Michael Rees Web Applications 2
  • 3. Hypertext Markup Language • Text-based markup language for web pages • Defines: – Page content: text, images, audio-visual, executable behaviour (JavaScript) – Page structure: different types of content (paragraphs, headings, lists, tables, links, and so on) – Page presentation: deprecated in favour of CSS • HTML comprises: – Elements or tags, tag attributes, and content – Character entities: single special characters – Data types: URI, colour, ID, units, dates, encoding © 2009 Michael Rees Web Applications 3
  • 4. Dynamic HTML • An old marketing term • Browsers read (X)HTML to create an in-memory Document Object Model (DOM) • JavaScript code within a web page is able to access and change the DOM contents • Browsers detect DOM changes and immediately redisplay the content dynamically – hence the name • Enables: – responsive graphical user interface controls – effects such as animation, drag and drop & so on • Different browsers use different JavaScript notation for the DOM contents © 2009 Michael Rees Web Applications 4
  • 5. HTML Components • head tag – title (regard as mandatory) – styles – metadata—content description • body tag—page content – headings – body paragraphs – lists – Tables • JavaScript: in head or body © 2009 Michael Rees Web Applications 5
  • 6. HTML Basics • HTML consists of plain text interspersed with HTML tags • tags are enclosed in ‗<‘ and ‗>‘ angle brackets – eg <title> or <head>, lowercase spelling is required in XHTML • tags have content enclosed within start and ending forms: – <title> ...title text... </title> • empty tags start and end in one tag: – <hr/> equivalent to <hr></hr> • <!-- one or more lines of comment --> © 2009 Michael Rees Web Applications 6
  • 7. HTML Components DTD Declaration XML Namespace Attribute, value in quotes Entity Closed tag Empty tag © 2009 Michael Rees Web Applications 7
  • 8. Character Entities • common characters ‗<‗, ‗>‗ and ‗&‘ – &lt; for < – &gt; for > – &amp; for & – &copy; for © (ALT+0169) – &nbsp; non-breaking space • accented characters – é is written &eacute; – è is written &egrave; – ñ is written &ntilde; – æ is written &aelig; © 2009 Michael Rees Web Applications 8
  • 9. XHTML Lists <p>Academic Senate ... following matters: <ul> <li>the formulation and development of ... <li> regulatory provisions for ... </ul> <h2>Composition</h2> <dl> <dt>Executive Chancellor: ... <dt>Deans of Schools</dt> <dd>Business: ... <dd>Humanities .. </dl> © 2009 Michael Rees Web Applications 9
  • 10. Paragraph types • <pre> ... </pre> – preformatted text in fixed-width font – spaces, tabs, newlines are significant • <blockquote> ... </blockquote> – as <p> but indented left and right • <address> ... </address> – italics – used for address and identification information, usually at end of document © 2009 Michael Rees Web Applications 10
  • 11. Tables • Tags for table building are: – <table> ... </table> whole table definition – <tr> ...</tr> surround a single row – <td> ...</td> surround a single cell in a row – <th> ... </th> surround a header (title) cell – <caption> ... </caption> surround heading and footing captions • Tables may be nested within tables © 2009 Michael Rees Web Applications 11
  • 12. Table Example <table border="1" > <tr align="center" valign="center"> <th>Code</th> <th>Item</th> <th>Note</th> <th>Price</th> </tr> <tr> <td>P125</td> <td>Glucose Tester</td> <td>Pain-free</td> <td>$28.99</td> </tr> <tr> <td>D652</td> <td>Bandage Kit</td> <td>Long stick</td> <td>$8.95</td> </tr> </table> © 2009 Michael Rees Web Applications 12
  • 13. Container Tags • Container tags allow a group of tags (page fragment) to be accessed as a single tag – Single id attribute – Apply style to whole container – Respond to events in whole container • <div> – Always starts a new line in the page • <span> – No line break – Words and characters within one line © 2009 Michael Rees Web Applications 13
  • 14. Links • Hyperlink to any web resource • Specifies a resource address: – Pathname to file – relative link – URL – absolute link • Uses the anchor <a> tag with an href attribute: – <a href=―http://www.bond.edu.au‖> Bond Uni</a> • Set target within a page: <p id=―target‖></p> then use <a href=―#target‖>Target link</a> © 2009 Michael Rees Web Applications 14
  • 15. Images • Image specified with tag: – <img src="URL" alt="text description" /> – SRC attribute: URL where image is located (can be anywhere) – ALT attribute: text displayed in special situations: • non-visual browsers: text shown instead of image • visual browsers: text shown while image loads • accessibility • Supported image types: – GIF: Graphics Interchange Format – JPEG: Joint Photographic Experts Group – PNG: Portable Network Graphics • Each image requires one additional request-response cycle © 2009 Michael Rees Web Applications 15
  • 16. Resources • Read Sections 2.1 through 2.8 of textbook © 2009 Michael Rees Web Applications 16