Basic Computer Notions Introduction to HTML

Next Introduction Separation of form and content Tags Identify file contents as HTML Identify file contents as HTML (cont'd) Head and body Head Head (cont'd) Head (cont'd) Head (cont'd) Body Paragraphs Paragraphs (cont'd) Emphasis Emphasis (cont'd) Emphasis (cont'd) Headings Lists Lists (cont'd) Lists (cont'd) Lists (cont'd) Address Line break Horizontal rule Links Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Links (cont'd) Images Images (cont'd) Images (cont'd) 37 of 49 Images (cont'd) Links to images Links to images (cont'd) Links to images (cont'd) Links to other media Embedded objects Tables Frames Summary of elements Checking syntax Learning more about HTML Style guides for creating Web pages

Images (cont'd)

In addition to the src attribute, the <img> tag also takes an alt attribute. This attribute specifies text which can be displayed by a nongraphical browser which can't display the image itself. It's recommended (required in HTML 4) that such an alternate text be included with every <img> element, for the benefit of users who can't (or don't want to) view graphics.

[McGill crest] For example, the code
<img src="crest.gif" alt="[McGill crest]">
would include an image with the alternate text '[McGill crest]'.


Start Next
Bacon home page

Valid HTML 4.01! (valid except for embed element) Valid CSS!

Creative Commons
License
This work is licensed under a Creative Commons License.
R. Funnell

Last modified: Sat, 2007 Mar 10 15:45:22

Slide show generated from html.html by Weasel 2007 Mar 10