+ 1
How to print html tags to browser?
7 Réponses
+ 5
the <pre> tag is kinda depreciated,use these two special entities > <
https://code.sololearn.com/WxC7i1N7ekjY/?ref=app
+ 4
Use pre tag
+ 4
᠌᠌brains I am surprised to know that pre tag is deprecated. What's the alternative tag then?
Normally Mozilla would warn the readers if the tag they referring is deprecated. But from Mozilla document, https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre
It still show the application of this tag, and does not mentioned the tag is deprecated at all.
Could you give me the official reference regarding this tag is deprecated?
+ 3
This is also Good
<xmp>
<p>Hello, xmp</p>
</xmp>
+ 2
What I know that xmp is deprecated, which we could refer to Mozilla document here, https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xmp
If the tag is deprecated, Mozilla document would clearly states that the tag is deprecated/obsoleted, to discourage users continue to use it.
+ 2
1. Sergeo
It's called HTML entities,
you can find a list here:
https://www.w3schools.com/html/html_entities.asp
2. The alternative for < and > are
<
>
3. Mostly used is for space