How a Web Page Works

When you write a Web page, no matter how you go about it, what you really end up with is an HTML file that can be published on a Web server.

An HTML file (see Figure 17.4) contains all the text that appears on the page, plus HTML tags.

Figure 17.4. The HTML source file of the page shown in Figure 17.1.

Tags are codes in an HTML file that tell a browser what to do. For example, if the tag <b> appears before a word and the tag </b> appears after the word, those tags tell browsers to show that word in bold type when displaying the page.

Besides controlling the formatting of the page, the tags in an HTML file label each chunk ...

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.