News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

HTML guide - Logical Tags

Started by ben2ong2, October 03, 2006, 05:48:39 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ben2ong2

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.


You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login