You are currently viewing Basic tags in HTML

Basic tags in HTML

In this article we will see some basic and frequently used HTML tags:

HR TAG:

  • This tag places a horizontal line across the system.
  • These lines are used to break the page.
  • This tag also contains attribute i.e., width which draws the horizontal line with the screen size of the browser.
  • This tag does not require an end tag.

Syntax:

<hr width=”50%”>

Base Font

This specify format for the basic text but not the headings.

Syntax:

<basefont size=”10”>

Font Tag

This sets font size, color and relative values for a particular text

Syntax:

<font size=”10” color=”#888”>

Strong Tag

This tag is used to always emphasized the text

Syntax:

<strong>emphasized text </strong>

tt Tag

This tag is used to give typewriting effect on the text.

Syntax:

<tt>typewritting effect</tt>

 

sub and sup Tags

These tags are used for subscript and superscript effects on the text.

Syntax:

<sub> subscript text</sub> 
<sup>superscript text</sup>

Anchor Tag

  • This tag is used to link two HTML pages, this is represented by <a>
  • href is an attribute which is used for giving the path of a file which you want to link.

Syntax:

<a href=”path of the file”> some text </a>

 

 

Payal Jindal

Payal Jindal is a student studying in Punjabi University, Patiala pursuing B.Tech. in Computer Science. She belongs to Sunam, Distt Sangrur (Punjab). She always try to do something different in her life.

Leave a Reply