HTML Program
HTML Program
Program:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Table Tag Example</title>
<style>
body {
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Table Tag with Attributes</h1>
<!-- Table with border, cellspacing, cellpadding, and width -->
<table border="1" cellspacing="5" cellpadding="10" width="80%"
align="center" bgcolor="#f9f9f9">
<!-- Caption for the table -->
<caption><strong>Sample Table with Attributes</strong></caption>