How to get html to display without being parsed -
i want able this:
<code> //my html pasted in , not parsed, people read/copy, goes here <h1>hello world</h1> <code>
i know can use code tag , inside it, script tag type="text/plain"
, display: block;
in css, not responsive , doesnt good.
i looked online couldnt find solve issue.
i want place can paste html, css or js display purposes , unparsed , styleable , responsive.
anyone got idea of best way go this?
you can use <xmp>
tag around code. frowned upon , deprecated in future, browsers still support , interpret raw html , display accordingly. see mozilla's documentation fuller explanations on so: show source code without xmp tag. without xmp
, you'll need escape <
, >
in pre
or code
tag.
Comments
Post a Comment