logical formatting tags in html

What are logical tags in HTML?

Logical tags are designed to tell the browser the meaning of the text. A brief example of a logical tag is the <strong> </strong> tag. By placing text between these tags you are telling the browser how important the text is to porn.

Since formatting means decoration, such formatting can also be done with CSS. However, these works are very small but widely used. If you want to do these with CSS, you may need to style them inline or design them by creating a class or ID and coding them in a style sheet. This increases both the code and the time. But these tags are called formatting tags because it is very easy to do with just a small tag in HTML. Only text is formatted through these tags. Hence its name text formatting. Below I show the HTML formatting tags and usage in the form of a table. Then I gave some examples.


Coding Example:

<!DOCTYPE html> 
      <title> HTML Text Formatting </title>
      <p>Here's a <strong> Important </strong> Text </p>
      <p>Here's a <mark> Marked </mark> Text </p>
      <p>Here's a <del> Deleted </del> Text </p>



logical formatting tags in html


Related Posts

meter element

meter element

How To Use The Meter Element In HTML?


Preg_match_all in php

The Basic Concept of the PHP preg_match_all Function The PHP preg_match_all function is a pattern-matching function that matches the text. This function is use to search for…


what is document.queryselector in javascript

What is document.querySelector() in Javascript? The javascript document.querySelector() method retrieves. The element with the given tag name or id from within a document. The document.querySelector() method returns…

JQuery hide Method.jpg

JQuery hide Method

What can the JQuery Hide Method Do For You? The JQuery Hide Method is a function that one can use to hide text on a website. It…

Push array in php.jpg

Push array in php

What is a php Push Array? A push array is a PHP data type that can store an arbitrary number of values. The push array is a…

How to use map method in javascript.jpg

How to use map method in javascript

What is the Map Method? The map method is a higher-order function in JavaScript. Who can use it to transform an array into another array by iterating…

This Post Has One Comment

Leave a Reply

Your email address will not be published.

Education Template