Could I use a src attribute on a p tag to load in raw text?


#1

Question

Could I use a src attribute on a p tag to load in raw text?

Answer

No. Unlike the global id attribute, the src attribute can only be applied to specific tags of which the p tag is not included. In other words, not all attributes are available to every tag. To find out which attributes are available to every tag, take a look at this list of global attributes.


FAQ: Learn HTML Elements – Intro to HTML – Review