Sharp Tutorial
Table in HTML

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

HTML

  • HTML Home
  • Introduction
  • HTML Element
  • Commonly used tags
  • Hyperlinks
  • Images in HTML
  • Div in HTML
  • Html Forms
  • Html Tables
  • Miscellaneous Topics

CSS

  • Introduction to CSS
  • How to apply CSS
  • CSS Selectors
  • Border in CSS
  • Text Formatting in CSS
  • Font Properties
  • Margin in CSS
  • CSS in List
  • CSS in Link
  • CSS Animation
  • CSS Effects
  • CSS Pagination
  • CSS Media Query

Java Script

  • Java Script Home
  • Introduction to Java Script
  • Variable in Java Script
  • Operators in Java Script
  • If-Else in Java Script
  • Loops in Java Script
  • Array in Java Script
  • Function in Java Script
  • Objects in Java Script
  • Java Script DOM

Table in HTML

HTML table is used to display the data in the tabular format using rows and columns

To create html table following tag can be used

  1. <table border=“2”> </table> -:To create the table
  2. <th> (opening tag) and </th> (closing tag)-: To create the heading of the table.
  3. <tr> (opening tag) and </tr> (closing tag)-: To create the row in the table.
  4. <td> (opening tag) and </td> (closing tag)-: To create the data in the HTML table.

To understand better the exampls is given below

<html>
<title>HTML table Example</title>
<body>
<center>
<table border="2">
<th>Roll No</th>
<th>Name</th>
<th>Course</th>
<tr>
<td>4011</td>
<td>John</td>
<td>BCA</td>
</tr>
<tr>
<td>4012</td>
<td>Rahul</td>
<td>MCA</td>
</tr>
</table>
</body>
</html>

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Video/ C Introduction

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial