Displaying tags on webpages
Sometimes you may need to display HTML tags on webpages, but how to do this if tags are interpreted by the browser and converted into data?
To display HTML tags on webpages, two HTML entities are used:
-
< for <
-
> for >
So to display HTML tags on webpages, use those two entities instead of the actual < and >.
Example:
Some text formatting tags include <ol>, <ul>, <li>, and <pre>
Output:
Some text formatting tags include <ol>, <ul>, <li>, and <pre>




