0
Hi everyone my question is for image tag ,why to use alt=/> at end ,is it mandatory use or can be igorned
alt=/> at end of img tag
6 Respuestas
+ 4
The alt attribute is a short for alternative text that should be displayed where the image should be in case the image source is invalid (that can't be loaded) or if the image content is disabled on the browser. It is also used for accessibility feature for visually impaired.
It is not mandatory attribute by the way.
Hth, cmiiw
+ 3
Bro @Asrar, I don't understand, what do you mean? do you want background image for HTML form? or do you want to submit image file using HTML form?.
You can learn more about HTML form here:
https://www.w3schools.com/html/html_forms.asp
Hth, cmiiw
+ 3
@Asrar you can join CSS course here, setting up background image for HTML elements is covered in that course.
I see you finished HTML course and currently learning JavaScript, you can join the CSS course, to have a complete basic knowledge for web development.
Hth, cmiiw
+ 2
Learn CSS. CSS is boss.
+ 1
background image for html form
0
bro how to add image in form