SlideShare a Scribd company logo
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, DIV
DIV, etc.
 CODE, Q, H1, SPAN
SPAN, 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

PPT
1-Basic HTML.ppt
PPT
1-Basic HTML.ppt
PPT
1-Basic HTML , Introduction to Basic HTML Concepts
PPT
1-Basic HTML.ppt
PPT
1-Basic HTML.ppt
PPT
1-Basic HTML.ppthjhjhjjjjjjjjjjjjjjjjjjjjjjjj
PPTX
02 From HTML tags to XHTML
PDF
Cmsc 100 (web content)
1-Basic HTML.ppt
1-Basic HTML.ppt
1-Basic HTML , Introduction to Basic HTML Concepts
1-Basic HTML.ppt
1-Basic HTML.ppt
1-Basic HTML.ppthjhjhjjjjjjjjjjjjjjjjjjjjjjjj
02 From HTML tags to XHTML
Cmsc 100 (web content)

Similar to an introduction for Basic HTML - bams.ppt (20)

PPT
PPTX
Lecture-1.pptx
PDF
Web Programming introduction
PDF
Unit 4 - HTTP and the Web Services - IT
PDF
Website designing company in faridabad
PPT
Html birth &amp; evolution
PPTX
CSWB 110 Tutorial1 Part A
PPTX
web design
PDF
CH4-HTMfdjsakla;fja;sffjdsklgsdlgsdfgdsL5.pdf
PDF
Fii Practic Frontend BeeNear - laborator 1
PPTX
Web technology Unit-II Part A
PPT
Web design internet basics
PPTX
HTML AND XML ppt.pptx
PPT
Wt-UNNIT-1 (1).ppt
PDF
Introduction to Html
PPT
HyperTextMarkupLanguage.ppt
PPT
Html book2
PPTX
Unit I- HTML, CSS, Bootstrap .pptx
PDF
Fundamental Internet Programming.pdf
Lecture-1.pptx
Web Programming introduction
Unit 4 - HTTP and the Web Services - IT
Website designing company in faridabad
Html birth &amp; evolution
CSWB 110 Tutorial1 Part A
web design
CH4-HTMfdjsakla;fja;sffjdsklgsdlgsdfgdsL5.pdf
Fii Practic Frontend BeeNear - laborator 1
Web technology Unit-II Part A
Web design internet basics
HTML AND XML ppt.pptx
Wt-UNNIT-1 (1).ppt
Introduction to Html
HyperTextMarkupLanguage.ppt
Html book2
Unit I- HTML, CSS, Bootstrap .pptx
Fundamental Internet Programming.pdf
Ad

More from Bambang Osd (7)

PPTX
Hypertext Markup Language (HTML) Cascading Style Sheets.pptx
PDF
PERENCANAAN DAN EVALUASI PENJASORKES.pdf
PDF
PELAKSANAAN DEMOKRASI DI NEGARA INDONESIA.pdf
PPTX
Problem-solving-with-Computational-Thinking-present.pptx
PPTX
Problem-solving-with-Computational-Thinking-present.pptx
PPTX
TIK Per 1.pptx
PDF
Aplikasi Pegolah Kata.pdf
Hypertext Markup Language (HTML) Cascading Style Sheets.pptx
PERENCANAAN DAN EVALUASI PENJASORKES.pdf
PELAKSANAAN DEMOKRASI DI NEGARA INDONESIA.pdf
Problem-solving-with-Computational-Thinking-present.pptx
Problem-solving-with-Computational-Thinking-present.pptx
TIK Per 1.pptx
Aplikasi Pegolah Kata.pdf
Ad

Recently uploaded (20)

PPTX
Presentation on HIE in infants and its manifestations
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
RMMM.pdf make it easy to upload and study
PPTX
GDM (1) (1).pptx small presentation for students
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Lesson notes of climatology university.
Presentation on HIE in infants and its manifestations
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
RMMM.pdf make it easy to upload and study
GDM (1) (1).pptx small presentation for students
2.FourierTransform-ShortQuestionswithAnswers.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pharma ospi slides which help in ospi learning
Chinmaya Tiranga quiz Grand Finale.pdf
Institutional Correction lecture only . . .
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Microbial diseases, their pathogenesis and prophylaxis
202450812 BayCHI UCSC-SV 20250812 v17.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Lesson notes of climatology university.

an introduction for Basic HTML - bams.ppt

  • 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, DIV DIV, etc.  CODE, Q, H1, SPAN SPAN, 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

  • #14: ‘ ’s is &nbsp; (the non-breaking space)