+ 1

How to print html tags to browser?

26th Dec 2018, 12:26 PM
Osman Saeed
6 Respostas
+ 5
the <pre> tag is kinda depreciated,use these two special entities &gt; &lt; https://code.sololearn.com/WxC7i1N7ekjY/?ref=app
26th Dec 2018, 12:44 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 4
Use pre tag
26th Dec 2018, 12:30 PM
Calviղ
Calviղ - avatar
+ 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?
26th Dec 2018, 2:01 PM
Calviղ
Calviղ - avatar
+ 3
This is also Good <xmp> <p>Hello, xmp</p> </xmp>
26th Dec 2018, 12:55 PM
Ahlin Chan
Ahlin Chan - avatar
+ 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.
26th Dec 2018, 2:05 PM
Calviղ
Calviղ - avatar
+ 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 &#60; &#62; 3. Mostly used is &nbsp; for space
26th Dec 2018, 2:26 PM
Gordon
Gordon - avatar