Chapter 03
Chapter 03
HTML
Chapter 3
2
3 Semantic
Markup
Structure of HTML
Documents
4 HTML5 Semantic
5
Structure
6
Elements
HTML Elements
7
Summary
Quick Tour of
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Chapter 3
1
What Is HTML and HTML Syntax
Where Did It
Come from?
2
3 Semantic
Markup
Structure of HTML
Documents
4 HTML5 Semantic
5
Structure
6
Elements
HTML Elements
7
Summary
Quick Tour of
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
What Is HTML and Where Did It Come from?
HTML
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
What Is HTML and Where Did It Come from?
Markup
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
What Is HTML and Where Did It Come from?
XHTML and Validation
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
What Is HTML and Where Did It Come from?
HTML 5
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Chapter 3
1
What Is HTML and HTML Syntax
Where Did It
Come from?
2
3 Semantic
Markup
Structure of HTML
Documents
4 HTML5 Semantic
5
Structure
6
Elements
HTML Elements
Summary
Quick Tour of
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML Syntax
Elements and Attributes
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML Syntax
Elements and Attributes
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML Syntax
Nesting HTML Elements
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML Syntax
Nesting HTML Elements
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML Syntax
Nesting HTML Elements
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML Syntax
Nesting HTML Elements
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Chapter 3
1
What Is HTML and HTML Syntax
Where Did It
Come from?
2
3 Semantic
Markup
Structure of HTML
Documents
4 HTML5 Semantic
5
Structure
6
Elements
HTML Elements
Summary
Quick Tour of
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Semantic Markup
Advantages:
• Maintainability
• Performance
• Accessibility (http://www.w3.org/WAI )
• Search Engine Optimization
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Chapter 3
1
What Is HTML and HTML Syntax
Where Did It
Come from?
2
3 Semantic
Markup
Structure of HTML
Documents
4 HTML5 Semantic
5
Structure
6
Elements
HTML Elements
Summary
Quick Tour of
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Structure of HTML Documents
A simple example
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Structure of HTML Documents
DOCTYPE
<!DOCTYPE html>
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Structure of HTML Documents
A slightly more complex document
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Structure of HTML Documents
Head and Body
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Structure of HTML Documents
Some more common elements
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Chapter 3
1
What Is HTML and HTML Syntax
Where Did It
Come from?
2
3 Semantic
Markup
Structure of HTML
Documents
4 HTML5 Semantic
5
Structure
6
Elements
HTML Elements
Summary
Quick Tour of
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
A document to walk through
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
A document to walk through
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
CSS styles are coming soon, HTML is structural
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Headings
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Paragraphs and Divisions
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Links
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Links
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Links (continued)
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
URL Relative Referencing
• <a>
• <abbr>
• <br>
• <cite>
• <code>
• <em>
• <mark>
• <small>
• <span>
• <strong>
• <time>
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Images
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Character Entities
Entity Description
Nonbreakable space
< <
> >
© ©
™ ™
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Lists
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Quick Tour of HTML Elements
Lists
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Chapter 3
1
What Is HTML and HTML Syntax
Where Did It
Come from?
2
3 Semantic
Markup
Structure of HTML
Documents
4 HTML5 Semantic
5
Structure
6
Elements
HTML Elements
Summary
Quick Tour of
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML5 Semantic Structure Elements
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML5 Semantic Structure Elements
Header and Footer
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML5 Semantic Structure Elements
Header and Footer
<header>
<img src="logo.gif" alt="logo" />
<h1>Fundamentals of Web Development</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="browse.html">Browse</a></li>
</ul>
</nav>
</header>
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML5 Semantic Structure Elements
Main
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML5 Semantic Structure Elements
Articles and Sections
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML5 Semantic Structure Elements
Figure and Figure Captions
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML5 Semantic Structure Elements
Aside
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
HTML5 Semantic Structure Elements
Details and Summary
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Tools Insight
WYSIWYG Editors
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Tools Insight
Code Editors
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Tools Insight
Integrated Development Environments
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Tools Insight
Cloud-Based Environments
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Tools Insight
Code Playgrounds
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Chapter 3
1
What Is HTML and HTML Syntax
Where Did It
Come from?
2
3 Semantic
Markup
Structure of HTML
Documents
4 HTML5 Semantic
5
Structure
6
Elements
HTML Elements
Summary
Quick Tour of
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.
Summary
Key Terms
Randy Connolly and Ricardo Hoar Fundamentals of Web Development - 2nd Ed.