Entities in HTML


As we know HTML is a tag based language, so if we use tags to design an Iframe in the HTML page. We can not use “<” or “>” sign in HTML because HTML consider this statement as a tag. So we have to use entities to write such elements inside an Iframe.

1) For “<” sign we use &lt (lt means less than)
2) For “>” sign we use &gt (gt means greater than)
3) For symbol of copyright(©) we use (&copy)
4) For Euro(€) sign we use (&euro)

Let us write a small program using all the above entities

The output will be like

How are you < Let me check > && < Also Answer my other question > ۩

We can use different types of symbol by just learning their entity names also because entity names are supported by all browsers. You should now check for entities and try using them in your own script.