HTML tag for images is img. This tag has no closing one. The attribute src specifies the URL of the image file and the attribute alt specifies the text to be shown by the text-only browsers. The attribute alt is required.
The img tag also supports other attributes to be considered later.
Layout | HTML tags |
---|---|
![]() |
<img src="sunset.gif" alt="sunset" /> |
You can use images to insert "fancy" lines into your scripts.
Layout | HTML tags |
---|---|
![]() |
<img src="line12.gif" alt="ruler" /> |