Web Design

(Nancy Kaufman) #1

21


CHAPTER

Getting Started with HTML 2


TIPS


Do capitalization and spacing matter?
XHTML requires that all tags and attributes be
written in lowercase letters. Whitespace, however,
does not matter; the examples above and
throughout the book separate code onto distinct
lines to make it more readable, but a page where all
of the code is written on a single line is also valid.

Do I need all of these tags in every document?
Browsers will display your page if you do not have
these basic tags, but they may not do so correctly,
so you should always include them. Most dedicated
HTML editors add them automatically when you
create a new document.

0 Type .


! Press.


@ Type .


Press.


$ Type .


The document now contains
the basic tags needed for a
Web page.


5 Press.


6 Type My First<br /> Page.


7 Press.


8 Type .


9 Press.


6


12


8


10


14

Free download pdf