James Scott
James Scott

Reputation: 1074

What does &#_integer_; do in URL SRC?

I saw an img tag in some source code and I'm not sure what the 
 and 	 do, here is the example:

<img src="&#10;&#9;assets/img/banner.jpg">

I took a look online but the search results didn't turn up anything (possibly because of the ampersands and hash in the search term), and playing about in the console didn't reveal anything either.

what does hash semicolon do in src
what does &#num; do in src

If anyone could give me a pointer I'd appreciate it.

Thanks,

James

Upvotes: 0

Views: 22

Answers (1)

johirpro
johirpro

Reputation: 507

Both &#10; and &#9; are HTML character entities. Maybe unintentionally inserted by someone in the source code.

See more about HTML character entities from here:
https://dev.w3.org/html5/html-author/charref
https://www.w3schools.com/html/html_entities.asp

Upvotes: 1

Related Questions