Search
 
SCRIPT & CODE EXAMPLE
 

HTML

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 :: how to jump line in html 
Html :: react native force light mode 
Html :: italic in html 
Html :: typo3 symlinks 
Html :: email confirmation html template 
Html :: iframe render html in angular 
Html :: hr tag html 
Html :: prefill input field html 
Html :: make a div clickable 
Html :: html left quote 
Html :: balise a html 
Html :: button md file 
Html :: etiqueta tachado html 
Html :: what should base_generic.html look like 
Html :: HTML5 Video tag not working in Safari , iPhone and iPad 
Html :: html onkeyup set value 
Html :: how to detect play button on html video player 
Html :: horizontal line html 
Html :: happy birthday code in html 
Html :: the <video tag 
Html :: html underline tag 
Html :: html article tag example 
Html :: link in html 
Html :: convert html datetime-local to java LocalDateTime 
Html :: Simple example of adding javascript in body tag of HTML 
Html :: html how to hide and show multiple 
Html :: Simple random code generator 
Html :: insert text html 
Html :: html gallery 
Html :: tooltip in html 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =