แท็กกึ่งกลางใน HTML ใช้เพื่อจัดข้อความให้อยู่กึ่งกลาง
หมายเหตุ :แท็ก
ให้เราดูตัวอย่างการใช้แท็กศูนย์ใน HTML -
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 2px solid blue;
}
</style>
</head>
<body>
<table>
<center>Table to calculate the budget</center>
<caption>Expenses</caption>
<tr>
<th>Domains</th>
<th>Cost</th>
</tr>
<tr>
<td>Product Development</td>
<td>500000</td>
</tr>
<tr>
<td>Marketing</td>
<td>500000</td>
</tr>
<tr>
<td>Services</td>
<td>100000</td>
</tr>
<tr>
<td>Support</td>
<td>100000</td>
</tr>
<tr>
<td>Maintenance</td>
<td>100000</td>
</tr>
<tr>
<td colspan="2">Total Budget = INR 1300000</td>
</tr>
</table>
</body>
</html> ผลลัพธ์
