'center' Example : center « HTML Tag Reference « HTML CSS Reference






'center' Example

    

<html>
<head>
<title>center element example</title>
</head>
<body>
   <center>
      <table width="400" border="8" cellspacing="5" cellpadding="5" align="center">
      <caption valign="bottom" style="color:blue">
         This table is centered within the margins of the page.
      </caption>
      <tr>
         <td>not centered</td>
         <td><center>centered</center></td>
      </tr>
      <tr>
          <td><center>centered</center></td>
          <td>not centered</td>
      </tr>
      </table>
  </center>
  <center>Centered</center>
  not centered
</body>
</html>
           
      
      








Related examples in the same category

1.'center' Syntax and Note
2.'center' HTML Attributes
3.'center' Event Handlers
4.'center' CSS Attributes and JavaScript Style Properties
5.'center' Microsoft Behaviors
6.'center' Microsoft Filters
7.'center' JavaScript Properties
8.'center' JavaScript Methods
9.'center' JavaScript Collections
10.'center' JavaScript Objects