Theme Layout

Boxed or Wide or Framed

Wide

Theme Translation

Display Featured Slider

Featured Slider Styles

Display Grid Slider

yes

Grid Slider Styles

Display Trending Posts

Display Author Bio

Display Instagram Footer

off

Dark or Light Style

Light

Blog Archive

Powered by Blogger.

Saturday, February 25, 2017

[HTML5] Images


# HTML Images


● HTML Images Syntax

 In HTML, images are defined with the <img> tag.
The <img> tag is empty, it contains attributes only, and does not have a closing tag.
The src attribute specifies the URL of the image.

https://www.w3schools.com/html/html_images.asp

● The alt Attribute

 The alt attribute provides an alternate text for an image, if the user for some reason cannot view it.
If a browser cannot find an image, it will display the value of the alt attribute.


The alt attribute is required. A web page will not validate correctly without it.


● HTML Screen Readers


 A screen reader is a software program that reads the HTML code, converts the text, and allows the user to "listen" to the content. Screen readers are useful for people who are blind, visually impaired, or learning disabled.

● Image Floating

 Use the CSS float property to let the image float to the right or to the left of a text.



● Image Maps

 Use the <map> tag to define an image-map. An image-map is an image with clickable areas.
The name attribute of the <map> tag is associated with the <img>'s usemap attribute and creates a relationship between the image and the map.
The <map> tag contains a number of <area> tags, that defines the clickable areas in the image-map

https://www.w3schools.com/html/html_images.asp


QuickEdit
Unknown
0 Comments
Share This Post :

You Might Also Like

No comments:

Post a Comment

Follow @SunriseSunsetBlog