What is the role of “alt=” in HTML?
What is the role of “alt=” in HTML?
i have a code and i am confuse about what is the of “alt=” here. it is alternative or the name of image? on line 7.
<!DOCTYPE html>
<html>
<head>
<title>Good page!</title>
</head>
<body style="background-color:rgb(135, 135, 190) ;">
<img src="jnv.png" alt="JNV logo" height="150">
<h1>Jawahar Navodaya Vidyalaya</h1>
<p style="color:red",title="I am paragraph">I am a student of Jawahar Navodaya Vidyalaya.</p>
<hr>
<p> This is a poem.</p>
<pre>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</pre>
<a href=”https://google.com”> google.</a>
<br>
<img src=”img.jpg” alt=”W3School.com” height=”142″>
</body>
</html>
Code My Life - Official Changed status to publish January 27, 2023