+ 2
What's the difference between src and href in html?
3 ответов
+ 10
Pls Use search bar
https://www.sololearn.com/discuss/248246/?ref=app
https://www.sololearn.com/discuss/556845/?ref=app
https://www.sololearn.com/discuss/538397/?ref=app
https://www.sololearn.com/discuss/1403378/?ref=app
https://www.sololearn.com/discuss/916634/?ref=app
https://www.sololearn.com/discuss/1013176/?ref=app
https://www.sololearn.com/discuss/305017/?ref=app
https://www.sololearn.com/discuss/257885/?ref=app
0
The href attribute specifies the location (URL) of a resource, that an anchor element points to, or the location of a linked resource, like a stylesheet. While the src attribute is used to embed a resource - usually URLs - into a document, think embedded images (<img>) and <script> tags.
Source:
https://discuss.codecademy.com/t/whats-the-difference-between-href-and-src-attributes/353244#:~:text=Answer,)%20and%20tags.
0
src : To specify the origin of (a communication).
href: A reference or link to another page, document.