All original objective of HTML is to mark up the text and then indicating the purpose for each of the document. Any text within <h1> is called as header and any text within <code> are considered to be the code of the program. With reference to this, the logical tags, also known as the idiomatic elements suggests different types of information and most of them are delivered in some specific ways like the Italics, the Bold or the Monospace.
Therefore, when any emphasis is done on the text it is represented with Italics and when you refer to any strong text it can be indicated with bold letters. So logical tags are quite similar to bold or italics texts and that's why people are often in a dilemma that why the code <b> is to be used? Basically, the logical tags also help in "formatting" tags that indicates a physical appearance of the document. Unfortunately, the logical tags are loosing out importance but still it serves some important purpose.
All <strong> and <em> are displayed like <b> and <i> with the physical tags. Most of the logical tags do not control the display of the text, but it will depend on the browser that whether it will be able to render the text enclosed between the tags. Therefore, the bold or the italics of the text vary according to the browser. After you have put in the code, for result you can check put the "Display" button. In the process another browser window pops up along with the result. You should modify the code in the box and can check the results again. You can check out the following syntax:
All header tags are also considered as Logical tags, and they are represented <h1> and for the major section of the document <h2>. It is also for the secondary sections of the document and with the highest header <h1>. The header syntax appears like the following.
The most common HTML tags are:
Couldn't find what you were looking for on this page? Search our site using the simple search form below.