+ 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=ââ
2 Antworten
+ 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>
+ 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 



