Page 77 - CA_165_V2.0_Flipbook
P. 77
<CENTER> Tag
This is a container tag. It is used to align the text, picture, table, etc in centre of the screen.
<CENTER> Text </CENTER>
For example:
<CENTER> ORANGE EDUCATION</CENTER>
<CENTER> Tag
Type Function Attributes Contains Used Inside
Container tag Centers the None. Content that will be Typically placed
content. centered. within <BODY>
or other container
tags.
The following HTML code uses the <center> tag to center the content on the web page:
<HTML>
<HEAD>
<TITLE>
Using CENTER
</TITLE>
</HEAD>
<BODY>
<CENTER>
This text will be displayed in the center of the screen.
</CENTER>
</BODY>
</HTML>
The output of the preceding HTML code is as follows:
Text appears in center alignment
Notes
The <CENTER> tag is not supported in HTML5.
Introduction to HTML 75

