+ 2

What does alt=“” do? And what is class=“” exactly?

I don’t understand what class=“” stands for.. And neither what’s the use of the alt=“”

25th Aug 2018, 3:31 PM
dun
2 odpowiedzi
+ 1
Example; <body> <style> .title { color: red; text-align: center; } </style> <div class="title">My Title</div> <img src="fish.png" alt="Fish Picture" /> </body>
25th Aug 2018, 4:16 PM
Sousou
Sousou - avatar
+ 3
Clsss 👉 attribute specifies one or more classnames for an element. The class attribute is mostly used to point to a class in a style sheet. However, it can also be used by a JavaScript (via the HTML DOM) to make changes to HTMLelements with a specified class. Alt👉 alt attribute specifies an alternate text for an image, if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it 
25th Aug 2018, 3:42 PM
Sudarshan Rai
Sudarshan Rai - avatar