CENTER ELEMENT

You can use this tag to show the text in the center of your webpage. You can also do this by using ALIGN Attributes. i.e. <P ALIGN=CENTER>. Use this tage before and after the text you want to show in center.  Tag format is
<CENTER>.......................................</CENTER>

EXAMPLE:

<HTML>
<HEAD>
<TITLE> This is an example of CENTER tag</TITLE>
</HEAD>
<BODY>
<CENTER>This is an example of CENTER tag.</CENTER>
If you do no use this tag your text will look like this
</BODY>
</HTML>

CENTER ELEMENT Example



If you do not know how to save your program then please visit another post to save it. That post link is Lets Start

I hope this will help you to understand, practice it and if you found any problem let me know in comment or email me in srv2013@gmail.com. Best of Luck

Related Posts:

  • Complete Index HTML Tags Part 1 *** Bold tags are only available for HTML5 <! --.. --> Define Comment <!DOCTYPE> Define the document type <a> Define a hyperlink <abbr> Define Abbreviation or … Read More
  • HEADING ELEMENT By using this tag you can give different types of heading in your web page. From H1 to H6, there are 6 levels. By the number 1 you can easily imagine H1 is the biggest heading and H6 is the smallest. The format of this tag i… Read More
  • BGCOLOR ELEMENT(Background Color)We didnt add any background color yet. Now we will add background color. We have to put it as attribute under the <BODY> tag. For color we can directly add RED, GREEN, BLUE, WHITE or we can use the HEX CODE.  Prog… Read More
  • CENTER ELEMENT You can use this tag to show the text in the center of your webpage. You can also do this by using ALIGN Attributes. i.e. <P ALIGN=CENTER>. Use this tage before and after the text you want to show in center.  Tag … Read More

0 comments:

Post a Comment