Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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 Respostas
+ 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Ā