SlideShare a Scribd company logo
1 of 25
1
WWW/HTML Basics
CS 4173
2
What is the WWW?
A distributed document delivery system
Uses a client-server model
Main presentation language is HTML
3
Client-Server Model
Two processes (possibly networked):
īŽ The client
īˇ Sends requests to the server
īˇ Blocks until reply is received
īŽ The server
īˇ Processes requests from clients
īˇ Never blocks
īˇ Can reply to several clients simultaneously
4
HTML
Hypertext Markup Language
Intended to be maximally portable
īŽ Logical markup
īŽ Graceful degradation of presentation
An ideal promoted by early WWW
īŽ Used to be more honoured in the breach
īŽ Is it getting better now?
5
Markup Languages
Markup:
īŽ Embedded codes in documents
īŽ Codes are called `tags’
īŽ Codes
īˇ Describe the structure documents
īˇ Include instructions for processing
Markup language:
īŽ Computer language for describing syntax of tags
īŽ May be used with other tools to specify rendering
6
Logical Markup
Logical markup:
īŽ Describes parts of document
īŽ Does not specify how to render
Example:
īŽ This is <strong>very</strong> important
īŽ This is very important
7
Logical Markup
Presentation is client’s `decision’
When client cannot present then there
is graceful degradation
ī‚§ <img alt=“image description”
ī€  src=“foo.gif”>
īŽ Object example from Cougar
8
Some history
Gopher & the Internet Superhighway
SGML
īŽ GML + Charles Goldfarb = SGML
īŽ eXtensible Markup Language
HTML
XML and XHTML
9
Why HTML became XHTML
HTML was originally a SGML
application
īŽ Tags described the syntax
īŽ A DTD could check the syntax
īŽ Informal mapping from syntax to rendering
Multiple incompatible versions arose
īŽ IETF moves at ’net speed not web $peed
īŽ Tag abuse was rampant in the ’net
īŽ They were a plague unto the users
10
Why HTML became XHTML
(2)
If you think IMG is bad â€Ļ
Big vendors (M$ and N$ mostly) agreed
īŽ To start over
īŽ To use eXtensible Markup Language
īˇ A re-write of SGML emphasizing simplicity
īˇ Carefully planned by CS savvy folks
īˇ Includes hooks for future development
11
XHTML Basics
Very few real changes from HTML
But more strict
All tags are in lowercase
All tags must be closed
īŽ Empty tags
īŽ Paired tags
12
XHTML Basics
3 Parts to an XHTML or HTML document
īŽ DOCTYPE
īˇ What DTD are you using
īŽ Head
īˇ Meta information
īˇ Only <title> is required
īŽ Body
īˇ Text to render
13
XHTML Document Structure
14
XHTML Basics
Tags
īŽ Elements
īŽ Attributes
Entities
īŽ <,>,&,‘ ’
īŽ Ö,ð,Ãˇ,Š, etc.
īŽ See example at CS4173 website
Comments
15
XHTML Tags vs. Elements
Tag is markup to represent an element
Logical vs. Presentation Elements
īŽ TT ≈ CODE, KBD, PRE?
īŽ B/IT/U ≈ EM/STRONG
Lists
īŽ UL/OL
īŽ DL
16
XHTML Tags vs. Elements
Block-level and in-line elements
īŽ TABLE, P, BLOCKQUOTE, DIVDIV, etc.
īŽ CODE, Q, H1, SPANSPAN, etc.
Grouping Elements
īŽ DIV
īŽ SPAN
One-part elements
īŽ BR, etc.
17
XHTML Tags vs. Elements
Browser-specific tags
MARQUEE, BLINK, etc.
What happens when a browser doesn't
recognize a tag?
18
XHTML Basics
Tags may be nested but
Tags may not overlap
19
Overlap versus Nesting
20
Links — Why The WWW Is
HT
‘A’ element
īŽ HREF
īŽ NAME
īŽ CLASS
īŽ REL
īŽ TYPE
URIs and
URLs
RFCs
īŽ TITLE
īŽ ID
īŽ STYLE
īŽ Anchor Text
īŽ TABINDEX
21
Where are the tools?
HTML Tidy
īŽ /opt/bin/tidy on borg
The validator
īŽ http://validator.w3.org/
īŽ http://www.cs.dal.ca/validator?
īŽ http://www.cs.dal.ca/validate?
īŽ http://www.cs.dal.ca:81?
22
XHTML/HTML Examples
XHTML element sampler
XHTML sample template
Both in the examples section of the website
23
For More About HTML
RFC 1866 (HTML 2.0) (at faqs.org)
Explains some of the philosophy behind HTML
HTML 4.01 (at W3C)
Last version of HTML
XHTML 1.1 (at W3C)
Modularized XHTML
So many choices!â€Ļ
24
Which Standard to Follow?
Minimal standard for this course is
HTML 4.01 Transitional
Preferred standard is XHTML 1.0 or 1.1
See Picking a Rendering Mode
īŽ By Eric Meyer
īŽ In the Readings part of the Resources
25
Here endeth the lesson

More Related Content

What's hot

The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersRasin Bekkevold
 
Html tag html 10 x10 wen liu art 2830
Html tag html 10 x10 wen liu art 2830Html tag html 10 x10 wen liu art 2830
Html tag html 10 x10 wen liu art 2830Wen Liu
 
INTRODUCTION TO HTML
INTRODUCTION TO HTMLINTRODUCTION TO HTML
INTRODUCTION TO HTMLbwire sedrick
 
Basic knowledge on html and dhtml
 Basic knowledge on html and dhtml Basic knowledge on html and dhtml
Basic knowledge on html and dhtmlSuryakanta Behera
 
Basic html
Basic htmlBasic html
Basic htmldevi labba
 
Html xhtml css
Html xhtml cssHtml xhtml css
Html xhtml cssL15338
 
Xhtml 2010
Xhtml 2010Xhtml 2010
Xhtml 2010guest0f1e7f
 
1 introductin to HTML
1 introductin to HTML1 introductin to HTML
1 introductin to HTMLJaved Khan
 
Html book2
Html book2Html book2
Html book2Diksha Garg
 
Design Tools Html Xhtml
Design Tools Html XhtmlDesign Tools Html Xhtml
Design Tools Html XhtmlAhsan Uddin Shan
 
HTML 5: Syntax
HTML 5: SyntaxHTML 5: Syntax
HTML 5: SyntaxReema
 
Html Presentation
Html PresentationHtml Presentation
Html PresentationRahulSuri30
 

What's hot (17)

The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for Beginners
 
Html tag html 10 x10 wen liu art 2830
Html tag html 10 x10 wen liu art 2830Html tag html 10 x10 wen liu art 2830
Html tag html 10 x10 wen liu art 2830
 
INTRODUCTION TO HTML
INTRODUCTION TO HTMLINTRODUCTION TO HTML
INTRODUCTION TO HTML
 
Class2
Class2Class2
Class2
 
Basic knowledge on html and dhtml
 Basic knowledge on html and dhtml Basic knowledge on html and dhtml
Basic knowledge on html and dhtml
 
Html & dhtml ppt
Html & dhtml pptHtml & dhtml ppt
Html & dhtml ppt
 
Basic html
Basic htmlBasic html
Basic html
 
Html xhtml css
Html xhtml cssHtml xhtml css
Html xhtml css
 
Xhtml 2010
Xhtml 2010Xhtml 2010
Xhtml 2010
 
1 introductin to HTML
1 introductin to HTML1 introductin to HTML
1 introductin to HTML
 
Tutorial on html
Tutorial on htmlTutorial on html
Tutorial on html
 
Html book2
Html book2Html book2
Html book2
 
What is xml
What is xmlWhat is xml
What is xml
 
GFGC CHIKKABASUR(HTML)
GFGC CHIKKABASUR(HTML)GFGC CHIKKABASUR(HTML)
GFGC CHIKKABASUR(HTML)
 
Design Tools Html Xhtml
Design Tools Html XhtmlDesign Tools Html Xhtml
Design Tools Html Xhtml
 
HTML 5: Syntax
HTML 5: SyntaxHTML 5: Syntax
HTML 5: Syntax
 
Html Presentation
Html PresentationHtml Presentation
Html Presentation
 

Similar to 1 basic html

1-Basic HTML.ppt
1-Basic HTML.ppt1-Basic HTML.ppt
1-Basic HTML.pptARUNVEVO1
 
1-Basic HTML.ppt
1-Basic HTML.ppt1-Basic HTML.ppt
1-Basic HTML.pptArjunTomar14
 
1-Basic HTML.ppt
1-Basic HTML.ppt1-Basic HTML.ppt
1-Basic HTML.pptkavi806657
 
1-Basic HTML.ppt
1-Basic HTML.ppt1-Basic HTML.ppt
1-Basic HTML.pptkavi806657
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusNANDINI SHARMA
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3inshu1890
 
web development.pdf
web development.pdfweb development.pdf
web development.pdfBagHarki
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdfRamyaH11
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Modelchomas kandar
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Modelchomas kandar
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web ArchitectureChamnap Chhorn
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxArjayBalberan1
 
Web Services Part 1
Web Services Part 1Web Services Part 1
Web Services Part 1patinijava
 
Vskills angular js sample material
Vskills angular js sample materialVskills angular js sample material
Vskills angular js sample materialVskills
 
Ncp computer appls web tech asish
Ncp computer appls  web tech asishNcp computer appls  web tech asish
Ncp computer appls web tech asishNCP
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxMohammadRafsunIslam
 
Introduction To Web (Mukesh Patel)
Introduction To Web (Mukesh Patel)Introduction To Web (Mukesh Patel)
Introduction To Web (Mukesh Patel)Tirthesh Ganatra
 

Similar to 1 basic html (20)

1-Basic HTML.ppt
1-Basic HTML.ppt1-Basic HTML.ppt
1-Basic HTML.ppt
 
1-Basic HTML.ppt
1-Basic HTML.ppt1-Basic HTML.ppt
1-Basic HTML.ppt
 
1-Basic HTML.ppt
1-Basic HTML.ppt1-Basic HTML.ppt
1-Basic HTML.ppt
 
1-Basic HTML.ppt
1-Basic HTML.ppt1-Basic HTML.ppt
1-Basic HTML.ppt
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV Syllabus
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3
 
8023.ppt
8023.ppt8023.ppt
8023.ppt
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
mst_unit1.pptx
mst_unit1.pptxmst_unit1.pptx
mst_unit1.pptx
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptx
 
Over view of html
Over view of htmlOver view of html
Over view of html
 
Web Services Part 1
Web Services Part 1Web Services Part 1
Web Services Part 1
 
Vskills angular js sample material
Vskills angular js sample materialVskills angular js sample material
Vskills angular js sample material
 
Ncp computer appls web tech asish
Ncp computer appls  web tech asishNcp computer appls  web tech asish
Ncp computer appls web tech asish
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
 
Introduction To Web (Mukesh Patel)
Introduction To Web (Mukesh Patel)Introduction To Web (Mukesh Patel)
Introduction To Web (Mukesh Patel)
 

Recently uploaded

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
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 ConsultingTechSoup
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
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
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

1 basic html

  • 2. 2 What is the WWW? A distributed document delivery system Uses a client-server model Main presentation language is HTML
  • 3. 3 Client-Server Model Two processes (possibly networked): īŽ The client īˇ Sends requests to the server īˇ Blocks until reply is received īŽ The server īˇ Processes requests from clients īˇ Never blocks īˇ Can reply to several clients simultaneously
  • 4. 4 HTML Hypertext Markup Language Intended to be maximally portable īŽ Logical markup īŽ Graceful degradation of presentation An ideal promoted by early WWW īŽ Used to be more honoured in the breach īŽ Is it getting better now?
  • 5. 5 Markup Languages Markup: īŽ Embedded codes in documents īŽ Codes are called `tags’ īŽ Codes īˇ Describe the structure documents īˇ Include instructions for processing Markup language: īŽ Computer language for describing syntax of tags īŽ May be used with other tools to specify rendering
  • 6. 6 Logical Markup Logical markup: īŽ Describes parts of document īŽ Does not specify how to render Example: īŽ This is <strong>very</strong> important īŽ This is very important
  • 7. 7 Logical Markup Presentation is client’s `decision’ When client cannot present then there is graceful degradation ī‚§ <img alt=“image description” ī€  src=“foo.gif”> īŽ Object example from Cougar
  • 8. 8 Some history Gopher & the Internet Superhighway SGML īŽ GML + Charles Goldfarb = SGML īŽ eXtensible Markup Language HTML XML and XHTML
  • 9. 9 Why HTML became XHTML HTML was originally a SGML application īŽ Tags described the syntax īŽ A DTD could check the syntax īŽ Informal mapping from syntax to rendering Multiple incompatible versions arose īŽ IETF moves at ’net speed not web $peed īŽ Tag abuse was rampant in the ’net īŽ They were a plague unto the users
  • 10. 10 Why HTML became XHTML (2) If you think IMG is bad â€Ļ Big vendors (M$ and N$ mostly) agreed īŽ To start over īŽ To use eXtensible Markup Language īˇ A re-write of SGML emphasizing simplicity īˇ Carefully planned by CS savvy folks īˇ Includes hooks for future development
  • 11. 11 XHTML Basics Very few real changes from HTML But more strict All tags are in lowercase All tags must be closed īŽ Empty tags īŽ Paired tags
  • 12. 12 XHTML Basics 3 Parts to an XHTML or HTML document īŽ DOCTYPE īˇ What DTD are you using īŽ Head īˇ Meta information īˇ Only <title> is required īŽ Body īˇ Text to render
  • 14. 14 XHTML Basics Tags īŽ Elements īŽ Attributes Entities īŽ <,>,&,‘ ’ īŽ Ö,ð,Ãˇ,Š, etc. īŽ See example at CS4173 website Comments
  • 15. 15 XHTML Tags vs. Elements Tag is markup to represent an element Logical vs. Presentation Elements īŽ TT ≈ CODE, KBD, PRE? īŽ B/IT/U ≈ EM/STRONG Lists īŽ UL/OL īŽ DL
  • 16. 16 XHTML Tags vs. Elements Block-level and in-line elements īŽ TABLE, P, BLOCKQUOTE, DIVDIV, etc. īŽ CODE, Q, H1, SPANSPAN, etc. Grouping Elements īŽ DIV īŽ SPAN One-part elements īŽ BR, etc.
  • 17. 17 XHTML Tags vs. Elements Browser-specific tags MARQUEE, BLINK, etc. What happens when a browser doesn't recognize a tag?
  • 18. 18 XHTML Basics Tags may be nested but Tags may not overlap
  • 20. 20 Links — Why The WWW Is HT ‘A’ element īŽ HREF īŽ NAME īŽ CLASS īŽ REL īŽ TYPE URIs and URLs RFCs īŽ TITLE īŽ ID īŽ STYLE īŽ Anchor Text īŽ TABINDEX
  • 21. 21 Where are the tools? HTML Tidy īŽ /opt/bin/tidy on borg The validator īŽ http://validator.w3.org/ īŽ http://www.cs.dal.ca/validator? īŽ http://www.cs.dal.ca/validate? īŽ http://www.cs.dal.ca:81?
  • 22. 22 XHTML/HTML Examples XHTML element sampler XHTML sample template Both in the examples section of the website
  • 23. 23 For More About HTML RFC 1866 (HTML 2.0) (at faqs.org) Explains some of the philosophy behind HTML HTML 4.01 (at W3C) Last version of HTML XHTML 1.1 (at W3C) Modularized XHTML So many choices!â€Ļ
  • 24. 24 Which Standard to Follow? Minimal standard for this course is HTML 4.01 Transitional Preferred standard is XHTML 1.0 or 1.1 See Picking a Rendering Mode īŽ By Eric Meyer īŽ In the Readings part of the Resources

Editor's Notes

  1. ‘ ’s is &amp;nbsp; (the non-breaking space)