CHAPTER 4. HTML TAGS AND ATTRIBUTES 38
must have a space in front of it.
Exam Question 53 (p.339): Give the prototype (pattern) for HTML
markup in general.
Acceptable Answer:<tag att=val ...>
In our study of HTML we will use the following vocabulary.
tagmeans the first piece of an HTML markup. It normally matches a word
or phrase in English that has a similar meaning. For example, tag might be
h1orporimg.
attribute=means one of the attributes (parameters) that modify the be-
havior of that HTML tag. For example, attribute might bestyle= or
class=ortitle=.
valuewill appear in the context of attribute=value.
Later on, in our study of CSS we will find a similar vocabulary. However,
for CSSattribute:with a colon will be used instead ofattribute=with
an equals sign.
All HTML markup is done using tags and attributes. Markup is always
(1) introduced by<,
(2) followed by a tag,
(3) followed by zero or more attributes,
(4) each attribute can have a value, and
(5) ended with>or/>.
4.2.1 Most Tags Come in Pairs
There are two main kinds of markup used in webpages.
The most common kind uses astart tagbefore the content to be marked,
and a matchingend tagafter the content to be marked.
The end tag uses the same tag word as the start tag, but it has/right
before the tag word.
Example: