WebDevelopersNotes logo

home-icon Home / HTML / HTML guide – Logical Tags

HTML guide – Logical Tags

HTML guide - Logical Tags

There are 9 logical tags each requiring a closing tag:

  • <STRONG> Strong:   I am strong
  • <EM> Emphasis:   I am emphasized
  • <ABBR> Abbreviation:   I am abbreviated
  • <CITE> Citation:   Citation
  • <CODE> Code:   I am programming code
  • <DFN> Definition:   Definition
  • <KBD> Keyboard:   Quite like keyboard strokes
  • <SAMP> Sample:   Sample
  • <VAR> Programming Variable:   Programming Variable

Like the physical level tags, these tags can be nested. So:

<STRONG><EM>Some text</EM></STRONG>

will be displayed as:
Some text

Logical and Physical tags revisited

You would have noticed that <STRONG> and <EM> are displayed quite like <B> and <I> physical tags. But remember Logical tags do not control the display of text. It is up to the browser to render text enclosed between these tags.
For example, when a browser encounters text between <EM> and <EM> tags it understands that this text has to be accentuated somehow. So the text may be put in bold or in italics depending on the browser.

Sponsored Links

Your comments
Star icon IMPORTANT Have a question / problem? Click here to ask an expert.

Web designer vs. web developer

Sponsored Links

Tips

How do I view a deleted web page?
Is there a way to view a deleted web page - one that is no longer available? Yes there is and the solution is quite simple. [more...]

Fact

DEC.com is the fifth oldest domain name. It was registered by Digital Equipment Corporation, which was also the first computer vendor to launch a public web site (on 1th October 1993). At one time it hosted a software repository at gatekeeper.dec.com which was very popular during the pre-WWW days. [more...]

We use cookies to give you the best possible website experience. By using WebDevelopersNotes.com, you agree to our Privacy Policy