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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.