What's a src attribute? And also what does it do? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What's a src attribute? And also what does it do?

14th Sep 2018, 4:40 AM
Master Jack
4 Respuestas
+ 7
It is use in <img> tag and it specifies the location of your image.
14th Sep 2018, 4:57 AM
MDJ_
MDJ_ - avatar
+ 5
MDJ_ SRC can be use in many. like <script SRC etc
14th Sep 2018, 5:30 AM
Yash
Yash - avatar
+ 4
it specifies the source
14th Sep 2018, 5:29 AM
Yash
Yash - avatar
+ 3
src stands for SouRCe it is used to specify a source for an element example <img src="images/helloworld.png" /> or used in video elements <video src="videos/helloworld.mp4" controls /> same applies for script elements you can include external scripts with <script src="js/main.js"> </script> or in link elements to link fonts, stylesheets and more
14th Sep 2018, 5:40 AM
Niko Harpson
Niko Harpson - avatar