SlideShare a Scribd company logo
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
 
Dhtml
DhtmlDhtml
Dhtml
Sadhana28
 
Document Object Model (DOM)
Document Object Model (DOM)Document Object Model (DOM)
Document Object Model (DOM)
GOPAL BASAK
 
Xml applications
Xml applicationsXml applications
Xml applications
Nabahat Tahir
 
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)
Beat Signer
 
Document Object Model
Document Object ModelDocument Object Model
Css present
Css presentCss present
Css present
MissaGiles
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
rahul kundu
 
Document object model
Document object modelDocument object model
Document object model
Amit kumar
 
Dhtml chapter2
Dhtml chapter2Dhtml chapter2
DHTML
DHTMLDHTML
Dhtml
DhtmlDhtml
Web dev
Web devWeb dev
Web dev
taahacassim
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
chomas kandar
 
Dom
Dom Dom
Dhtml
DhtmlDhtml
Dom structure
Dom structureDom structure
Xhtml
XhtmlXhtml

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

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

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_DOM
HTML_DOMHTML_DOM
HTML_DOM
BIT DURG
 
XML Document Object Model (DOM)
XML Document Object Model (DOM)XML Document Object Model (DOM)
XML Document Object Model (DOM)
BOSS Webtech
 
The Semantic Web #2 - XML
The Semantic Web #2 - XMLThe Semantic Web #2 - XML
The Semantic Web #2 - XML
Myungjin Lee
 
Xml
XmlXml
DOM-XML
DOM-XMLDOM-XML
Unit iv xml dom
Unit iv xml domUnit iv xml dom
Unit iv xml dom
smitha273566
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
chomas kandar
 
HTML 5
HTML 5HTML 5
INFT132 093 07 Document Object Model
INFT132 093 07 Document Object ModelINFT132 093 07 Document Object Model
INFT132 093 07 Document Object Model
Michael Rees
 
Unit 01 (1).pdf
Unit 01 (1).pdfUnit 01 (1).pdf
Unit 01 (1).pdf
sayalishivarkar1
 
Supplement web design
Supplement web designSupplement web design
Supplement web design
shelly3160
 
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
Hamdi Hmidi
 
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
Contrext Solutions
 
Html and Xhtml
Html and XhtmlHtml and Xhtml
Html and Xhtml
Chhom Karath
 
Unit3wt
Unit3wtUnit3wt
Unit3wt
vamsi krishna
 
Unit3wt
Unit3wtUnit3wt
Unit3wt
vamsitricks
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
Dianajeon3
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
Stefan Oprea
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
srp24
 
Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3
g4gauravagarwal
 

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

Experiences with MOOCs: Challenges and Opportunities
Experiences with MOOCs: Challenges and OpportunitiesExperiences with MOOCs: Challenges and Opportunities
Experiences with MOOCs: Challenges and Opportunities
Michael Rees
 
Virtualisation advances for teaching and research
Virtualisation advances for teaching and researchVirtualisation advances for teaching and research
Virtualisation advances for teaching and research
Michael Rees
 
Building Classroom Community
Building Classroom CommunityBuilding Classroom Community
Building Classroom Community
Michael Rees
 
Teaching with Social Media
Teaching with Social MediaTeaching with Social Media
Teaching with Social Media
Michael Rees
 
Teaching with Social Media
Teaching with Social MediaTeaching with Social Media
Teaching with Social Media
Michael Rees
 
Cloud Apps Ascent - Snapshot
Cloud Apps Ascent - SnapshotCloud Apps Ascent - Snapshot
Cloud Apps Ascent - Snapshot
Michael Rees
 
INFT132 093 03 Web Concepts
INFT132 093 03 Web ConceptsINFT132 093 03 Web Concepts
INFT132 093 03 Web Concepts
Michael Rees
 
INFT132 093 02 Internet Concepts
INFT132 093 02 Internet ConceptsINFT132 093 02 Internet Concepts
INFT132 093 02 Internet Concepts
Michael Rees
 
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
Michael Rees
 
Favourite Cloud Apps
Favourite Cloud AppsFavourite Cloud Apps
Favourite Cloud Apps
Michael Rees
 
Screencasting to Enhance Teaching Materials
Screencasting to Enhance Teaching MaterialsScreencasting to Enhance Teaching Materials
Screencasting to Enhance Teaching Materials
Michael Rees
 
QCEC2009 Virtual IT Teaching Laboratory
QCEC2009 Virtual IT Teaching LaboratoryQCEC2009 Virtual IT Teaching Laboratory
QCEC2009 Virtual IT Teaching Laboratory
Michael Rees
 
Screencasting At Bond
Screencasting At BondScreencasting At Bond
Screencasting At Bond
Michael Rees
 
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
Michael Rees
 
Working In The Cloud General Edition
Working In The Cloud General EditionWorking In The Cloud General Edition
Working In The Cloud General Edition
Michael Rees
 
Working in The Cloud - Michael Rees
Working in The Cloud - Michael ReesWorking in The Cloud - Michael Rees
Working in The Cloud - Michael Rees
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
Michael Rees
 
Twitter Slides
Twitter SlidesTwitter Slides
Twitter Slides
Michael Rees
 
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
Michael Rees
 
For 2009
For 2009For 2009
For 2009
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

RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Vivekanand Anglo Vedic Academy
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 

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