+ 4
How to show html code on the website?
9 Respuestas
+ 3
The <xmp> HTML element renders text between the start and end tags without interpreting the HTML in between and using a monospaced font. The HTML2 specification recommended that it should be rendered wide enough to allow 80 characters per line.
I don't recommend this beacuse
It has been deprecated since HTML3.2 and was not implemented in a consistent way. It was completely removed from the language in HTML5.
Use the <pre> element or, if semantically adequate, the <code> element instead. that you will need to escape the '<' character as '<' to make sure it is not interpreted as markup.
https://code.sololearn.com/WMAyrf6BMf13/?ref=app
+ 1
<code>...</code>
+ 1
Not working on html .. all code runs on browser .
+ 1
Thanks 😘
+ 1
Dear Md Sahid Sk please mark it as solved
0
I know that bro.. i want to show html code in webpage like paragraph...
0
I know that bro.. i want to show html code in webpage like paragraph...