Reading an HTML File

Recall from Chapter 17, “Understanding Web Authoring,” that an HTML source file consists of four basic elements:

  • The text to be displayed on the page

  • The filenames of inline images

  • The URLs or filenames for links (and the text or image filenames for the link source)

  • HTML tags and attributes, which tell browsers which lines are images, links, headings, or normal paragraphs, for example

The best way to learn about HTML is to study HTML files and compare them with the output in a browser. Figure 26.1 shows a basic Web page displayed in Netscape, and Figure 26.2 shows the HTML source file for the same page.

Figure 26.1. A basic Web page, as interpreted by a browser.
Figure 26.2. The HTML source code for the Web page shown in

Get Sams Teach Yourself Internet and Web Basics All in One now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.