0
What's a src attribute? And also what does it do?
4 Respuestas
+ 7
It is use in <img> tag and it specifies the location of your image.
+ 5
MDJ_ SRC can be use in many. like <script SRC etc
+ 4
it specifies the source
+ 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