To have a quick reference at hand, today I was writing a note on how to include software code in my blog posts. I was listing things such as what HTML tags to use and how to use them. To make myself comfortable with HTML, I thought of writing the note as an HTML file. HTML provides <pre>. . .</pre> tags for including verbatim text in your HTML file. However, I quickly realized that any HTML code included in the <pre>. . .</pre> is not treated as verbatim text. It is executed as HTML code. I searched online and after some time, found the following solution.
Instead of using < and > to enclose HTML tags in the code snippet that you want to display, use < and >. For example, to display the <b>. . .</b> tags that you would use to get bold text, type:
<b> . . .</b>
Excellent pieces. Keep posting such kind of information on your blog. I really impressed by your blog.
ReplyDeleteThanks a lot for your kind comment. I am glad you liked it.
ReplyDeleteVery useful!
ReplyDeleteI would like to thank you for your nicely written post, its informative and your writing style encouraged me to read it till end. Thanks html coder
ReplyDelete