WT-II-HTML & XHTML-Basic Tags 02
WT-II-HTML & XHTML-Basic Tags 02
ch/
HTML & XHTML
Origins and Evolution of HTML
Basic Syntax
Standard HTML Document Structure
Basic Text Formatting
Images
Hypertext Links
Lists
Tables
Frames and Forms.
Analogy
Origins and Evolution of HTML and XHTML
• The first tag in a pair is the start tag, the second tag is the end tag .
• Start and end tags are also called opening tags and closing tags
HTML 1.0 HTML 2.0 HTML 3.2 (W3C) HTML 4.0 HTML 4.1
HTML 1.0 was the first HTML 2.0 included First version Introduced many new A cleanup of 4.0, • it
release of HTML to everything from the developed and features and faces 2 problems - it
the world. original 1.0 standardized deprecated many specifies loose syntax
The language was specifications • HTML exclusively by the older features. • rules it’s specification
very limiting. 2.0 was the standard W3C Support for HTML’s does not define how
for website design new supporting a user agent
until January 1997 • presentational (browser) is to
Defined many core language, CSS. recover when
HTML features for the erroneous code is
first time. encountered.
XHTML Timeline
HTML 4.0
2000 XHTML 1.0 2001 HTML 2.0 2008 HTML 3.2
Tag format:
• Text in a <pre> element preserves both spaces and line breaks. </pre> .
• It set a block of text off from the normal flow and appearance of text.
• Bold - <b>
• Italics - <i>
• Smaller - <small>
• Superscripts
• Subscripts
• Code
• Strong
7. Character Entities
• To include special characters
8. Horizontal Rules
• <hr />
• Used to separate the parts of a document from each other making the document easier to
read by placing horizontal line between them. This causes a line break and draws a line
across the screen .
9. Meta Element
• The meta element (for search engines) Used to provide additional information about a
document, with attributes, not content .
• Two attributes that are used to provide information are name and content
HTML vs XHTML
XHTML
• XHTML stands for EXtensible HyperText Markup Language
• XHTML was developed to make HTML more extensible and flexible to work with other data
formats (such as XML).
• In addition, browsers ignore errors in HTML pages, and try to display the website even if it has
some errors in the markup.