+ 1

Question how to i quote tags without them running as script

If i wanted to created a tutorial page that told someone what tags to use... how do can i write that into my script without i being run as script... like quoting the scripts to be used: eg. <html> <head></head> <body> <h1> Lesson 1 </h1> <p>Lesson; How to change your text to Bold, Itallics etc.... ...To make text bold you need to surroud it with the "<b></b>" open and close tags... </p> </body> </html> Except i want it to display the 'b' tags showing not 'run' them for lack of better terminology

8th May 2020, 8:56 AM
Matthew Harrison
Matthew Harrison - avatar
2 Respostas
+ 2
Try writing it like : &lt;b&gt;&lt;/b&gt; Now if you run, the output will be : <b></b> &gt; == '>' &lt; == '<'
8th May 2020, 8:59 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
0
Brilliant! Thankyou!!
18th May 2020, 8:35 PM
Matthew Harrison
Matthew Harrison - avatar