How do I print the "html" tag, including '<' and '>'? How can I do this for any tag, without using text areas and Javascript?
Developer ToolsThe DevTools ( F12 or Cmd/Ctrl + Shift + I ) can emulate print styles, although page breaks won't be shown. In Chrome, open the Developer Tools and select More Tools, then Rendering from the three-dot icon menu at the top right. Change the Emulate CSS Media to print at the bottom of that panel.
The simplest of those methods is to press the Print Screen key (or Alt+Print Screen) in Windows, or either Command+Shift+3 or Command+Shift+4 on a Mac.
Use HTML Special Character Codes var myCode = "<b>This is not bold</b>"; $('span#code-span'). text(myCode); Using text instead of html will cause tags to be rendered exposed instead of being executed.
Use HTML character references:
<html>
Should output
<html>
Try doing:
<html>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With