alt tags and title tags in HTML
There are two attributes that could be used as descriptive to elements in HTML: alt attribute and title att attribute and title attribute (Doyle, 2008).
alt attribute:
alt attribute is used to describe an element in case the browser didn't show the element such as img, area, input, and applet. Further, alt is not a tag as some might think because a tag is what comes between < >, while alt comes within the tag (Doyle, 2008).
For example:
alt attribute can be used in the img tag, thus, if the image didn't show for the user the image description will show (W3schools, 2021).
copy-free photo |
<img src="img_cookie.jpg" alt="double Chocolate chip cookie" width="500" height="600">
title attribute example (Doyle, 2008) |
reference list:
Doyle, M., 2008. The HTML Alt and Title Attributes. [online] Matt Doyle | Elated Communications. Available at: <https://www.elated.com/html-alt-title-attributes/> [Accessed 18 March 2021].
W3schools.com. 2021. HTML Attributes. [online] Available at: <https://www.w3schools.com/html/html_attributes.asp> [Accessed 18 March 2021].
Koscova, G., 2018. Beginner’s SEO: The difference between ALT text and Title text. [Blog] spotibo, Available at: <https://blog.spotibo.com/difference-between-alt-text-and-title-text/> [Accessed 18 March 2021].
Comments
Post a Comment