I need help to display html, css, javascript tags to webpage

Hello Sirs and Madams!

I am working for my own simple website to post the learning in a website. This is really a great way to learn the things along with freecodecamp. But, I am not able to post my codes and scripts as they are to show them in the page. Can you please tell me What is the best way to do that?
xmp tag is not supported by html 5. Is there any good alternative? and better any way to show the block of tags and scripts on web page?

Thank you

I’ve never used the xmp tag before and it seems it is obsolete…

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xmp

“Use the <pre> element or, if semantically adequate, the <code> element instead. Note that you will need to escape the ‘<’ character as &lt; to make sure it is not interpreted as markup.”

I replaced all of the ‘<’ 's in the quote above with &lt; You can use the live preview of the reply here on the forum to play with it :slight_smile:

&lt;p>Hello&lt;/p> = <p>Hello</p>

Thank you very much. I did it.