22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Save your page.<br />

4. View your page in a Web browser.<br />

Chapter 2: Creating and Viewing a Web Page<br />

Break out your text editor and Web browser — and roll up your sleeves.<br />

Step 1: Planning a simple design<br />

We’ve discovered that a few minutes spent planning a general approach to<br />

the page at the outset of work makes the creation process faster and easier.<br />

You don’t have to create a complicated diagram or elaborate graphical display<br />

in this step. Just jot down some ideas for what you want on the page and<br />

how you want it arranged.<br />

You don’t even have to be at your desk to plan a simple design. Take a notepad<br />

and pencil outside and design in the sun, or scribble on a napkin while<br />

you’re having lunch. Remember, this is supposed to be fun!<br />

The example in this chapter is our take on the traditional “Hello World” exercise<br />

used in just about every existing programming language: The first thing<br />

you learn when tackling a new programming language is how to display Hello<br />

World onscreen. In our example, we create a short letter to the world instead,<br />

so the page is more substantial with more text to work with. Figure 2-1 shows<br />

our basic design for this page.<br />

Title – Hello World<br />

Letter Paragraphs<br />

Sincerely,<br />

Jeff Noble<br />

Ed Tittel<br />

Notes: Teal background<br />

White text<br />

Figure 2-1: Taking a few minutes to sketch your<br />

page design makes writing <strong>HTML</strong> easier.<br />

33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!