|
|
| HTML Deprecated Tags
|
|
HTML Deprecated Tags and Attributes
» In HTML 4, some tags and attributes
are defined as deprecated. Deprecated means that they will not
be supported in future versions of HTML and XHTML.
» The message is clear: Avoid
the use of deprecated tags and attributes.
|
Text Formatting Tags
| Tag |
Description |
| <center> |
Defines centered content |
| <font> and <basefont> |
Defines HTML fonts |
| <s> and <strikeout> |
Defines strikeout text |
| <u> |
Defines underlined text |
| Attributes |
Description |
| align |
Defines the alignment of text |
| bgcolor |
Defines the background color |
| color |
Defines the text color |
|
<br> or <br/>
» In XHTML, XML, and future versions of HTML, HTML elements with no end tag (closing tag) are not allowed.
» Even if <br> works in all browsers, writing <br /> instead is more future proof.
|
Tables
Tables
are defined with the <table> tag. A table is divided into
rows (with the <tr> tag), and each row is divided into data
cells (with the <td> tag). The letters td stands for "table
data," which is the content of a data cell. A data cell can
contain text, images, lists, paragraphs, forms, horizontal rules,
tables, etc.
<html>
<head>
<title>skdotCom</title>
</head>
<body>
<table border="1" bgcolor="skyblue" width="300" align="center">
<tr>
<td>Name:</td>
<td><input type="text" name"chennaisunday"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name"chennaisunday1"></td>
</tr>
<tr>
<td></td>
<td><input type="button" name"sub" value="Login"></td>
</tr>
</table>
</body>
</html>
How it looks in a browser:
|
|
|
Tables and the Border Attribute
If you do not specify a border
attribute the table will be displayed without any borders. Sometimes
this can be useful, but most of the time, you want the borders
to show. To display a table with borders, you will have to use
the border attribute:
 <table border="1">
 <tr>
 <td>Row 1, cell 1</td>
 <td>Row 1, cell 2</td>
 </tr>
 </table>
|
Table Tags
| Tag |
Description |
| <table> |
Defines
a table |
| <th> |
Defines
a table header |
| <tr> |
Defines
a table row |
| <td> |
Defines
a table cell |
| <caption> |
Defines
a table caption |
| <colgroup> |
Defines
groups of table columns |
| <col> |
Defines
the attribute values for one or more Columns
in a table |
| <thead> |
Defines
a table head |
| <tbody> |
Defines
a table body |
| <tfoot> |
Defines
a table footer |
|
|
Back to Top |
|