How use valign in HTML?

 How use valign in HTML?


HTML valign attribute supports col,

 colgroup,

 tbody,

 td,

 tfoot,

 th,

 thead,

 tr elements.


   How to write valign in html


<ElementName valign="value" >.....</ElementName>


<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Example of HTML valign attribute with td element </title>

</head>

<body>

<table width="200" border="1" cellpadding="2">

<tr>

<th valign="middle" >Student Code </th>

<th valign="middle">Percentage of marks</th>

<th valign="middle">Grade</th>

<th valign="middle">Remarks</th>

</tr>

<tr>

<td valign="baseline">S001</td>

<td valign="baseline">92</td>

<td valign="baseline">A+</td>

<td valign="baseline">Excellent</td>

</tr>

<tr>

<td valign="baseline">S002</td>

<td valign="baseline">76</td>

<td valign="baseline">B+</td>

<td valign="baseline">Good</td>

</tr>

</table>

</body>

</html>

Comments

Last 7 Days

Difference between Public vs Internal vs Private state variables in solidity programming langauge with example ?

How to add Amazon website inside iframe?

What is a < code > tag?

How to use loop attribute with < video > tag in HTML for YouTube ? with example

How to use sandbox attribute value ( allow-scripts ) with < iframe > tag in HTML ? with example

free source code for website

What does P mean in HTML?

How to use sandbox attribute value ( allow-top-navigation) with < iframe > tag in HTML ? with example

How to use comments in Solidity programming language ?