1.4. The Basic Structure of HTML Documents

HTML elements are indicated by markup tags, which are enclosed by angle brackets. For instance, <TITLE> is the starting tag for the TITLE element. The tags are not displayed in the resultant Web page but rather provide descriptive information to the browser. HTML elements can also have attributes, which supply additional information in the form attribute=value. For instance, in the tag <IMG SRC="images/sample.gif">, images/sample.gif is the value of the SRC attribute of the IMG element. Most nonalphanumeric characters in attribute values require you to have double quotes around the value, so a wise convention is to always enclose values in double quotes unless the value is a simple integer. All HTML ...

Get Core Web Programming, Second Edition now with O’Reilly online learning.

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