+ 5
Why link tag have href attribute and whereas script tag have src attribute ??
Both are used to link external file and both are placed inside Head tag. So why they don't have same attribute ??
4 Respostas
+ 2
src = Source is source of the script/image or other and load in to the web 😉
href = HyperText Reference is add some CSS file or Document to the web
more info
https://stackoverflow.com/questions/3395359/difference-between-src-and-href
+ 3
🌈🌈🌈😉😉😉🌈🌈🌈
+ 2
I know difference of src and href. But my question is why we don't give src attribute to link tag ?
+ 2
Thanks I get it from stack overflow :)