You are here: Home / Topics / What is a physical tag and logical tag in HTML?

What is a physical tag and logical tag in HTML?

Filed under: HTML Interview Questions on 2022-07-02 15:08:15

A Physical tag has physical text which is used to tell the browser how to display the text enclosed in the physical tag.

Example for the physical tags are: <big>, <b>, <i>

Logical tags are used to tell the meaning of the enclosed text in it. The example of the logical tag is <Important>….</Important> tag. When we enclose text in Important tag then it tell the browser that enclosed text is more important than other text.

About Author:
K
Krishna Sharma     View Profile
Don't lose hope unless you get success.