Center Tag < center >

Center Tag <center></center>:-


The <center> tag is used to center-align text and tag.

Syntax:-

<center>text and tag</center>

Example:-

<html>
<head>
<title>Index | Center tag </title>

<head>
<body bgcolor="lightblue" text="black">
<!-- example of formatting tags  -->
<h2>Text formatting Tags</h2>
<b> - Bold text</b><br>
<strong> - Important text</strong><br>
<i> - Italic text</i><br>
<em> - Emphasized text</em><br>
<mark> - Marked text</mark><br>
<small> - Small text<small><br>
<del> - Deleted text</del><br>
<ins> - Inserted text</ins><br>
<sub> - Subscript text</sub><br>
<sup> - Superscript text</sup><br>

<center>
<h4>Formatting Tags in the Paragraph</h4>
<hr align="center" size="3" width="25%" color="green">

<b>Notepad</b> is a basic <i>text-editing program</i> and 
it's most commonly used to <mark>view or edit text files.</mark> 
A text file is a file type typically identified by the .
txt file name <u>extension</u>.
</center>



<body>


</html>

The output of the above code :-











To download HTML File:-  ClickHere


Comments

Popular posts from this blog

Body tag < body > < / body>

Heading Tag ( h1 to h6)