Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to make a table in html

<!Doctype html>
<html>
    <body>
        <table border="5">
            <thead>
                <tr>
                    <td>Sr No.</td>
                    <td>Name</td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>1.</td>
                    <td>2.</td>
                </tr>
                <tr>
                    <td>Python</td>
                    <td>HTML</td>
                </tr>
            </tbody>
        </table>
    </body>
</html>
Comment

HTML Table

<!DOCTYPE html>
<html>
<style>
table, th, td {
  border:1px solid black;
}
</style>
<body>

<h2>A basic HTML table</h2>

<table style="width:100%">
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
</table>

<p>To understand the example better, we have added borders to the table.</p>

</body>
</html>
Comment

HTML Tables

<table><caption>Phone numbers</caption>
<thead>
<tr>
	<th>Name</th>
	<th colspan="2">Phone</th>
</tr>
</thead>
<tbody>
<tr>
	<td>John</td>
	<td>577854</td>
	<td>577855</td>
</tr>
<tr>
	<td>Jack</td>
	<td>577856</td>
	<td>577857</td>
</tr>
</tbody>
<tfoot>
<tr>
	<td>&nbsp;</td>
	<td>Personal</td>
	<td>Office</td>
</tr>
</tfoot>
</table>
Comment

Tables in html

<table>
  <tr>
    <td>Cell 1</td>
    <td>Cell 2</td>
    <td>Cell 3</td>
  </tr>
  <tr>
    <td>Cell 4</td>
    <td>Cell 5</td>
    <td>Cell 6</td>
  </tr>
</table>
Comment

html table

HTML
<table border="1">
	<tr>
		<td>Rangée 1 Cellule 1</td>
		<td>Rangée 1 Cellule 2</td>
	</tr>
	<tr>
		<td>Rangée 2 Cellule 1</td>
		<td>Rangée 2 Cellule 2</td>
	</tr>
</table>
Comment

HTML Tables

<!DOCTYPE html>
<html lang="en">
<head>
<title>Example of HTML caption Tag</title>

</head>
<body>
   	<table dir="rtl" border="1" cellpadding="17"width="400" height="100" >
        <caption>User Details</caption>
        <thead>
            <tr>
                <th>1.</th>
                <th>2</th>
                <th>3</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>10</td>
                <td>20</td>
                <td>30</td>
            </tr>
            <tr>
                <td>100</td>
                <td>200</td>
                <td>300</td>
            </tr>
            <tr>
                <td>1000</td>
                <td>2000</td>
                <td>3000000000</td>
            </tr>
        </tbody>
    </table>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: nested columsn inside bootstrap 
Html :: how to stop moving text in html when you hover over it 
Html :: The <input Element 
Html :: image in html table 
Html :: full height div inside td 
Html :: css how to place an icon on a photo 
Html :: itelaic in html 
Html :: viewport 
Html :: django template list item by index 
Html :: postgres default port 
Html :: make flex scroll on overflow horizontal 
Html :: how to make a youtube video on a website and let it start by a set time 
Html :: html a tag 
Html :: h3 in html 
Html :: html table headers 
Html :: cards vuetify 
Html :: html contenteditable attribute 
Html :: random user image url 
Html :: html tooltip 
Html :: text box 
Html :: two buttons in same form 
Html :: bootstrap 4.5 product grid 
Html :: insert text html 
Html :: how to combine two input fields in html 
Html :: klaviyo properties 
Html :: html "/n" not woring 
Html :: decode html entities 
Html :: soundcloud player html5 
Html :: linux list files onlr 
Html :: where do you put style tags in html 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =