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> 
<html>
   <head>
      <title> HTML Text Formatting </title>
   </head>
   <body>
      <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>
   </body>
</html>

 

Result

logical formatting tags in html

 

1 thought on “logical formatting tags in html”

Leave a Comment