• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. how web sites work (a primer) > picturing how html works

picturing how html works

Structuring an HTML document The HTML document is divided into two sections: The head and the body. The HTML tags <html> </html> creates an html document. Every web page must begin and end with these invisible tags.
The head contains background information about the web page, such as its title. The Title <title></title> creates a title, which will appear in the browser’s title bar.
The body contains all the elements that will appear on the page itself, as well as instructions about how they should look and what they should do. The Headline

<h1></h1> creates the largest possible headline.

The Paragraph

<p></p> creates a paragraph, preceded by a line break.

The List

<ul> </ul> creates an unnumbered (bulleted) list.

<li> </li> surround each item on the list, indicating where the line breaks and where the bullet points go.

The Link

<a href=””> </a> creates a hyperlink—in this case to the National Geographic site. The link will appear in blue underlined text, unless you specify otherwise.

The Image

<img src=”” border=0> pulls in an image—in this case, “ostrich.jpg”—and makes it borderless (no frame).


the HTML document


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint