Chapter 2
Chapter 2
KEY CONCEPTS
HTML5 DTD
<!DOCTYPE html>
Head Section
Contains information that describes the web page document
<head>
…head section info goes here
</head>
Body Section
Contains text and elements that display in the web page document
<body>
…body section info goes here
</body>
<blockquote>
…text goes here…
</blockquote>
BROWSER DISPLAY:
Call for a free quote for your web development needs: 888.555.5555
Unordered List
Ordered List
Description List
formerly called a definition list
<ul>
Contains the unordered list
<li>
Contains an item in the list
◦ <dl>
Contains the description list
◦ <dt>
Contains a term/phrase/sentence
Configures empty space above and below the text
◦ <dd>
Contains a description of the term/phrase/sentence
◦ Indents the text
◦ Configures empty space above and below the text
Character Code
© ©
< <
> >
& &
nav Element
<nav></nav>
Contains web page
document’s main navigation
main Element
<main></main>
Contains the web page
document’s main content
footer Element
<footer></footer>
Contains the web page
document’s footer
Copyright © Terry Felke-Morris http://terrymorris.net 27
HTML5
Structural
Elements
<body>
<header> document headings go here </header>
<nav> main navigation goes here </nav>
<main> main content goes here </main>
<footer> document footer information goes here </footer>
</body>
href Attribute
Indicates the file name or URL
<a href="http://yahoo.com">Yahoo</a>
Relative link
◦ Link to pages on your own site
<a href="index.htm">Home</a>
Copyright © Terry Felke-Morris http://terrymorris.net 30
E-Mail Hyperlink
Automatically launch the default mail
program configured for the browser
If no browser default is configured,
a message is displayed
<a href=“mailto:me@gmail.com”>me@gmail.com</a>
32
Checkpoint