I have to make a an HTML tutorial. I need to show in the page html code examples. So, I want to have code displayed like this:
<h1>hi</h1>
not like this
hi
Is there any tag to do this? Or how can I do this only with HTML?
I have to make a an HTML tutorial. I need to show in the page html code examples. So, I want to have code displayed like this:
<h1>hi</h1>
not like this
Is there any tag to do this? Or how can I do this only with HTML?
You can encode characters to get them to show on a live page. For tags, use <
to make a < and >
to make >.
<h1><h1>text</h1></h1>
You can see more ways to change various characters when you write HTML at the link below. http://www.escapecodes.info/