HTML
June 3, 2026 5 min read

Inline semantic tags in HTML

HS
HEMANT SINGH
Technical Writer & Educator

Inline semantic tags

Inline tags mean a tag that has an effect in a line and has no 100% width is called inline tags.

 

and those tags that describe its meaning to both browser and developer are called semantics tags.

 

Popular semantics tags are:

  1. <small>
  2. <strong>
  3. <a>
  4. <span>
  5. <code>
  6. <time>
  7. <mark>
  8. <em>
  9. <br>
  10. <abbr>
  11. <cite>

<small> tag

use to write small text line print, copyright content in small format.

 

Example:

 

<small>
&copy; All rights are reserved.
</small>

<strong> tag

<strong> tag create the importance of text and makes text some bold, it is also used to display a text for seriousness, urgency, and important text.

 

Example

 

<p>
Welcome to <strong>FreeCodePoint.com</strong>
</p>

<a> tag

It is called an anchor tag, which is used to create an internal, external link.

 

<a> tag has three main attributes.

 

  1. href   [ used to create a link ]
  2. name [used to create bookmark ]
  3. target [used to open a page in same, new tab ], has two value _blank (open a link in a new tab), _self (open a link in the same tab)

Example

 

<a href=”https://freecodepoint.com” target=”_blank”>Freecodepoint.com</a>

where href is hypertext reference which specifies an address of source where the user will visit after clicking on this link and target=”_blank” specify where a link will open, as you can see we have write _blank, it means this link file will open in new tab.

 

<span> tag

This tag is an inline tag, has an effect in a current line, can be used to format some text within a line, and it has no special effect like italic, underline, and bold tags.

 

Example

 

<span>Category: News</span>

<code> tag

This tag format a text and display content as computer code, it is used to write any computer code within it.

 

Example

 

<code>
var a,b,c;
a=10;
b=20;
c=a+b;
document.write(“sum:”+c);
</code>

<time> tag

This tag used to display time content.

 

Example

 

<time>11:09:23 AM</time>

<mark> tag

This is also called a highlighter tag, it highlights contained text.

 

Example

 

<mark>H<sub>2</sub>O</mark>

<em> tag

Display emphasizes text like italic or screw text.

 

Example

 

<em>Welcome to freecodepoint.com</em>

<br> tag

This tag breaks a line.

 

<abbr> tag

Abbreviation element used to write acronym and abbreviation of words.

 

<abbr>Central Processing Unit</abbr>

 

<cite> tag

Used to describe creative work

 

Example:

 

Inventor of WWW was <cite>Tim Berners LEE</cite>

Demarcating tags

  1. <del> tag
  2. <ins> tag

<del> tag

Pass a line through a text

 

Example

 

Jeans Rs. 3,000 Rs. 2,000

 

<span>Jeans <del>Jeans Rs. 3,000</del> Rs. 2,000</span>

<ins> tag

Insert an underline line for selected text.

 

Example

 

A computer is an electronic machine.

<p>A computer is an <ins>electronic machine</ins></p>