TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

HTML

HTML Tables

Overview

We can use the <table> tag to display HTML Tables in web pages. A table is an organized structure to display data in the form of rows and columns.

Syntax

Start tag: <table>
End tag : </table>

The <table> tag defines the beginning of the table. The </table> tag defines the end of the table.

Table Row

<tr>
</tr>

Table row <tr> defines the beginning of the row and </tr> end of the row.

Table Cell

<td>
</td>

A table cell defines an individual cell. Table cells are always placed inside a table row. Table cell <td> defines the beginning of the cell and </td> end of the cell.

Example

<html>
<!–
####################################
# HTML Table Display Demo                                       #
# www.TestingDocs.com                                               #
####################################
–>
<head>
<title> HTML Tutorials – HTML Table Tag Demo</title>
</head>

<body>
<h1> HTML Table </h1>

<p>
Display a sample HTML Table:
</p>

<table border=”3″>
<tr>
<td> Subjects </td>
<td> Marks </td>
<td> Pass/Fail? </td>
</tr>

<tr>
<td> Mathematics </td>
<td> 90 </td>
<td> Pass </td>
</tr>
<tr>
<td> Physics </td>
<td> 74 </td>
<td> Pass </td>
</tr>
<tr>
<td> Chemistry </td>
<td> 68 </td>
<td> Pass </td>
</tr>
</table>

<p>
<h2>
HTML Tutorials – www.TestingDocs.com
</h2>
</p>

</body>
</html>

Sample Output

Sample HTML Table

 

—

HTML Tutorials

HTML Tutorials on this website:

https://www.testingdocs.com/html-tutorials/

More Information on HTML:

https://www.w3.org/TR/html401/intro/intro.html

Related Posts

Create HTML File

HTML /

Create HTML file with NetBeans IDE

HTML /

HTML5 Document Structure

HTML /

Introduction To HTML5

HTML5 Application NetBeans

HTML /

Create an HTML5 Application using NetBeans IDE

CSS Validator Tool

HTML /

HTML & CSS Validator Tools

‹ HTML Images› HTML Forms

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version