css - Display html tags as plain text for viewing -


im trying make visible text creates html tag , isn't text. i've tried doing

tag { display: block; } 

but seemingly isn't working.

anything helpful thanks

to display html tags text need encode them.

for example :

<span>hello</span> 

Comments