Images In HTML
The adage "A picture is worth a thousand words" refers to the notion that a complex idea can be conveyed with just a single still image. This fits more in the world of web than any other place. A web site having great images is more engaging than a dull text-based one.
You add images to your web page to display:
- Company logo
- Images
- Diagram, chart or illustration
Images are defined using the <img> tag in HTML which is an empty tag since it doesn't have an associated end tag. Some common attributes of <img> tag are src, alt, width, and height. The src attribute, which stands for source, is used to display images on a web page. Its value holds the location of the image. The alt attribute contains an alternate text that is displayed if the image cannot be displayed. The height and width attributes specify the image size (by default in pixels).
Learn the HTML5 language in this tutorial series. These tutorials are designed for new programmers to provide them thorough knowledge of full stack web development.