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

    • ChatGPT Plans Free and PlusChatGPT Subscription Plans
    • Stellar Converter for Database ToolStellar Converter for Database
    • Stellar MySQL Log AnalyzerStellar Log Analyzer for MySQL
    • Stellar Repair for MySQLStellar Repair for MySQL
    • ChatGPT IntroductionChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI FeaturesChatGPT4 Conversational AI Features
    • Trends in Software EngineeringShaping the Future of Development: Exploring Key Trends in Software Engineering
    • Java PerformanceImproving Java Performance with Multithreading
    • QDrant Vector DatabaseOpen-source Vector Databases
    • Difference between PHP and JavaScript?
    • Bing AI Browser Web ContentBing Conversation Styles
    • ChatGPT PreviewChatGPT Introduction
    • Open Source AI Frameworks TensorFlowOpen Source AI Frameworks
    • Artificial Intelligence Tools

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com