<!DOCTYPE html>

<html>

  <head>

    <title>HTML Table Example</title>

  </head>

  <body>

    <h1>Student Grades</h1>

    <table border=”1″>

      <caption>Classroom Gradebook</caption>

      <thead>

        <tr>

          <th>Name</th>

          <th>Subject</th>

          <th>Grade</th>

        </tr>

      </thead>

      <tbody>

        <tr>

          <td>Alice</td>

          <td>Math</td>

          <td>A</td>

        </tr>

        <tr>

          <td>Bob</td>

          <td>Science</td>

          <td>B+</td>

        </tr>

        <tr>

          <td>Charlie</td>

          <td>English</td>

          <td>A-</td>

        </tr>

      </tbody>

      <tfoot>

        <tr>

          <td colspan=”3″>End of Results</td>

        </tr>

      </tfoot>

    </table>

  </body>

</html>

(SEE RESULT)



HTML Tags Table
HTML Tags and What They Do
Tag What It Does
<h1>–<h2> Headings (large to small)
<p> Paragraph
<strong> Important (bold)
<b> Bold (non-semantic)
<em> Emphasis (italic)
<i> Italic (non-semantic)
<u> Underline
<br> Line break
<hr> Horizontal line
<div> Block container
<span> Inline container for styling