HTML
HTML introduction
HTML basics
HTML colors
HTML backgrounds
HTML text
HTML font
HTML text formatting
HTML entities
Display tags
HTML links
Email links
Types of links
HTML images
HTML image maps
HTML tables
HTML frames
HTML forms
Fieldset/legend tags
HTML stylesheets
Div/span tags
HTML layout
HTML marquees
HTML multimedia
HTML meta tags
HTML document types
HTML base tag
HTML scripts
URL formatting
Encoding and decoding
HTML summary

Programming

Programming intro
Java

Markup

First webpage guide
XHTML

Style & Layout

CSS

Browser scripting

Javascript
VBScript
AJAX

Server scripting

PHP
ASP

Making money online

Make money online

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:

  1. &lt; for <

  2. &gt; for >

So to display HTML tags on webpages, use those two entities instead of the actual < and >.

Example:

Some text formatting tags include &lt;ol&gt;, &lt;ul&gt;, 
&lt;li&gt;, and &lt;pre&gt; 

Output:

Some text formatting tags include <ol>, <ul>, <li>, and <pre>

Practice

Online code editor
Practical examples
Practical exercises
Step-by-step tutorials

Reference

Terms glossary
Reference material

Rate this site

Rate this site
Visitor comments