"Codecademy Summary" Html+css <img>

Source: Internet
Author: User

The element lets you add images to a Web page. element has required attribute called SRC, which was similar to the href. The values of SRC must be the URL of the image. also need a/to self-closing element.

exmaple like this:

Also, the ALT attribute is applied specifically to the element as a description.

Why add alt attibute?

1. If an image fails-load on a Web page, a user can Ouse over the area originally intended for the image and read a BRI EF description of the image.

2.Visually impaired users often browse the Web with the aid of a screen reading software. When you include ALT, the screen reading software can read the images's description outloud to the visusally impaired user .

Note:if the image on the Web page was ot one that conveys any meaningful information to a user, the Alt attribute should n OT be used.

+alt exmaple like this:

  

"Codecademy Summary" Html+css

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.