Monday, 2 June 2014

Logical and Physical Tags

Html Tags Type

Logical and Physical Tags

In HTML there are Two types of tags

 Logical tags

 Physical tags.

Logical tags are designed to describe (to the browser) the enclosed text's meaning.

An example of a logical tag :-

<strong> </strong> tag.

By placing text in between these tags you are telling the browser that the text has some greater importance. By default all browsers make the text appear bold when in between the <strong> and </strong> tags. 

Physical tags on the other hand provide specific instructions on how to display the text they enclose.

Examples of physical tags include:  

<b>: Makes the text bold.  ƒ

<big>: Makes the text usually one size bigger than what's around it.   

<i>: Makes text italic. 

No comments:

Post a Comment