Lecture 3
Lecture 3
Introduction to HTML
Today’s Lecture
• HTML History
• HTML and XHTML
• HTML Elements
• Block Level Element vs Inline Element
• HTML Page Structure
• W3C Validator
HTML History
• HTML stands for Hypertext Markup Language.
• HTML is a markup language.
• A markup language is a set of markup tags.
• Tags describe document content or layout.
• HTML documents contain HTML tags and plain text.
• First mentioned on the Internet by Tim Berners-Lee in late 1991.
• HTML 2.0 was published in Nov 1995.
• HTML 3.2 was published in Jan 1997.
• HTML 4.0 was published in Dec 1997.
• HTML 5.0 was published in Oct 2014.
HTML and XHTML
• HTML gives content structure and meaning by defining that content.
– Examples are <title>, <body>, <p>, and <b>.
• Some Important Key Points:
– <!DOCTYPE html>, <html>, <head>, <title>, and <body>
are mandatory.
– Elements must always be properly nested.
<html>
<head>
<title>video</title>
</head>
<body>
<h1>audio</h1>
<audio src="anthem.mp3" controls></audio>
</body>
</html>
HTML Page Structure
• HTML Audio Tag <audio>
Attributes
HTML Page Structure
• HTML Phrase Tags
– HTML phrase tags are special purpose tags.
– Some examples of phrase tags are:
• Abbreviation tag : <abbr>
• Marked tag: <mark>
• Strong tag: <strong>
• Emphasized tag : <em>
• Short quote tag : <q>
• Code tag: <code>
HTML Page Structure
• <strong>, and <em>
– <strong> is used to define text with strong importance.
• The content inside is typically displayed in bold.
– <em> is used to define emphasized text.
• The content inside is typically displayed in italic.
W3C Validator
• It checks that either tags are
following W3C formatting
standards or not.
• If fail to validate website's
pages based on W3C
standards, then website will
most likely suffer from errors.