Académique Documents
Professionnel Documents
Culture Documents
HTML, CSS,
and Dynamic HTML
5TH EDITION
Objectives
XP
Objectives
XP
The Structure of an
HTML5 Document
XP
XP
XP
XP
XP
XP
Introducing HTML
XP
10
XP
11
XP
12
XP
13
XP
14
XP
15
XP
16
XP
17
XP
18
XP
19
XP
20
Adding an Attribute to an
XP
Element
To add an element attribute, use the
format
<element attribute1=value1
attribute2=value2
...>content</element>
where attribute1, attribute2, etc. are
the names of attributes associated with
the element, and value1, value2, etc.
are the values of those attributes
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition
21
XP
22
XP
<html>
<head>
head content
</head>
<body>
body content
</body>
</html>
23
24
25
Converting an HTML
Document into XHTML
XP
26
XP
27
XP
28
Adding Comments
XP
29
Adding Comments
XP
30
XP
31
XP
32
XP
33
XP
34
Marking Structural
Elements
in
To HTML5
mark the page header, use the
XP
header element
To mark the page footer, use the
footer element
To mark a main section of page
content, use the section element
To mark a sidebar, use the aside
element
To mark an article, use the article
element
35
Marking a Section
with the div Element
XP
36
XP
37
XP
38
Working with
Grouping Elements
XP
39
Marking Grouping
Content
XP
40
Adding Headings
XP
41
Marking Paragraph
Elements
XP
42
XP
43
Marking an Address
XP
<address>content</address>
44
Marking a List
XP
45
Description Lists
XP
46
Applying an External
Style Sheet
XP
47
Linking to a JavaScript
File
XP
48
Marking Text-Level
Elements
XP
49
XP
50
XP
51
52
XP
53
XP
54
XP
55
the entity
&#code;
where code is the encoding number.
To insert a symbol based on a character entity
reference, use the entity
char;
where char is the name assigned to the character.
To insert a nonbreaking space, use the following entity:
To insert the < symbol, use the following entity:
<
To insert the > symbol, use the following entity:
>
56
XP
57
Specifying a Character
Set
XP
58