Many of them had the only purpose of
formatting the document content in a more palatable way. Those elements have added complexity to the
documents and this complexity has rendered the work of web designers really harder when the time of
updates occurred. To solve the problem, the concept of style sheets has been introduced. The embedded
or linked style sheets contain rules that describe the document from a formatting point of view, moving
away from the text structure the style information. Elements such as font have been deprecated because
they do not add any semantic value to the document. The style sheet rules are collected in the standard
Cascading Style Sheet (CSS) definition as later described.
Appendix A: Semantic HTML
587
Describing the CSS syntax is out of the scope of this book. It is enough to say that a rule is a set of
instructions that may be applied to elements. To decide which elements must be affected, one or more
selectors are indicated in a comma separated list.
A CSS rule will have the following form:
a {
font-weight: bold;
}
Where a is the selector (the rule applies to all a elements) and inside the brackets are the formatting
instructions to apply.
Pages:
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091