Image Element
The image element is used to display a given image to the screen.
Attributes
Attribute | Value |
---|---|
src | The path (URL) to the image that should appear when the page loads. |
alt | A few words of text that appear whenever the image fails to load. |
Example
Code:
<html> ... <body> <p> Follow me on Twitter:<br /> <img src="../img/twitter.png" alt="Follow me on Twitter" />. </p> </body> ... </html>
Screen Output:
Follow me on Twitter: