We can show html inside html by using using the html entity
‘<‘ as ‘<’ and the ‘>’ as ‘>’
Normally we use like this in html .
<h1> This is H1 tag </h1>But it the result renders html and shows like this
This is h1 tag
So will We will use this To prevent the rendering
<h1> This is H1 tag </h1>
The result
<h1> This is H1 tag </h1>
Now there is a full example which demonstrate this
Copy the code and try by yourself.
<!DOCTYPE html> <html> <head> </head> <body> <h1> This is H1 tag </h1> <h1> This is also H1 tag </h1> </body> </html>