HTML address, pre, kbd Tag | Formatting Tag

HTML Formatting tags

HTML address pre kbd tags are the important tags which are not much known to the people till date.
Here you will learn their importance as well as how to use each one of them.

HTML address tag :-

  • <address> : This tag specifies the contact information of the organization or owner, which can be an email address, physical address, contact number, etc. It helps the user to find the contact info or address of the organization.
  • Text inside the address tag is displayed in italics.
  • It’s display is “block” by default.

For Example :

<!DOCTYPE html>
<html>
<body>
<address><h1>F-17, Techno Brainz, Delhi</h1></address>
</body>
</html>

Output :

HTML address/pre/kbd tags

HTML pre tag :-

  • <pre> : This tag in HTML is used to obtain a pre-formatted output of the text preserving all whitespaces and line breaks.
  • Text enclosed in the pre tag is displayed in a fixed-width font but can be changed using CSS.

For Example :

<pre>The    number of
lines in a     paragraph depends on 
the size 
of the browser 
window.<pre>

Output :

HTML address/pre/kbd tags

HTML kbd tag :-

  • <kbd> : This tag is used to specify the keyboard input. It represents the keyboard keys in the browser’s default monospace font on the webpage.
  • It’s display is “inline” by default.

For Example :

<!DOCTYPE html>
<html>
<body>

<kbd>ctrl + alt + r</kbd>
</body>
</html>

Output :

Note :-

Watch HTML address pre kbd tags YouTube – Click here
HTML Lists – click here
HTML Favicons – Click here