0
Can't we use "src" attribute in body tag
Example is given in the <head> tag
6 odpowiedzi
+ 4
'src' is not a valid html attribute for <body> tag/element...
So, technically you can set it in a <body> tag, but your code will not be valid (even if browsers will silently ignore it), and if you try to access it trough JS code, you will get 'undefined' as value ^^
+ 1
I think It's not possible to use src attribute in body tag!!
+ 1
Can you give an example as a code??😊
+ 1
I didn't see any src attribute in body tag in the code!!
0
It is bro!
We can use it anywhere (body or head) as needed