<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=HTML%2FC2%2FTables-in-HTML%2FEnglish-timed</id>
		<title>HTML/C2/Tables-in-HTML/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=HTML%2FC2%2FTables-in-HTML%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=HTML/C2/Tables-in-HTML/English-timed&amp;action=history"/>
		<updated>2026-04-07T15:22:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=HTML/C2/Tables-in-HTML/English-timed&amp;diff=51380&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot;{| border=1  |- || Time || Narration  |- || 00:01 || Hello and welcome to the spoken tutorial on '''Tables''' in '''HTML'''  |- || 00:07 || In this tutorial we will learn:  Ho...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=HTML/C2/Tables-in-HTML/English-timed&amp;diff=51380&amp;oldid=prev"/>
				<updated>2020-03-20T09:51:36Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1  |- || Time || Narration  |- || 00:01 || Hello and welcome to the spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Tables&amp;#039;&amp;#039;&amp;#039; in &amp;#039;&amp;#039;&amp;#039;HTML&amp;#039;&amp;#039;&amp;#039;  |- || 00:07 || In this tutorial we will learn:  Ho...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Time&lt;br /&gt;
|| Narration&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:01&lt;br /&gt;
|| Hello and welcome to the spoken tutorial on '''Tables''' in '''HTML'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:07&lt;br /&gt;
|| In this tutorial we will learn:&lt;br /&gt;
&lt;br /&gt;
How to create '''Tables '''in '''HTML'''  and about the '''Table Attributes'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:16&lt;br /&gt;
|| To practise this tutorial, you should know to use any '''WYSIWYG '''or '''text editor''' and '''web browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:24&lt;br /&gt;
||If not, then go through '''gedit Text Editor '''and '''Firefox '''tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:32&lt;br /&gt;
|| To record this tutorial, I’m using &lt;br /&gt;
&lt;br /&gt;
'''Ubuntu Linux 16.04 OS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:39&lt;br /&gt;
|| '''HTML5'''&lt;br /&gt;
&lt;br /&gt;
'''gedit Text Editor '''and  '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:46&lt;br /&gt;
||However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||00:52&lt;br /&gt;
|| The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:59&lt;br /&gt;
||Please download and extract them.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:02&lt;br /&gt;
|| '''Tables '''are used to format the content to be displayed on the web, in the form of '''Rows '''and '''Columns'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:10&lt;br /&gt;
|| Look at this example of writing code in '''HTML '''to create a '''table'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:16&lt;br /&gt;
||Do you notice the different '''tags''' used here?&lt;br /&gt;
&lt;br /&gt;
Let me elaborate a bit about these '''tags'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:23&lt;br /&gt;
|| Note the positions of the '''table''' start and end '''tags'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:28&lt;br /&gt;
||The content to be formatted as a '''table,''' should be written within these '''tags'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:34&lt;br /&gt;
|| Look at the '''caption''' '''tag'''. &lt;br /&gt;
&lt;br /&gt;
This helps us to declare the title of the '''table'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:40&lt;br /&gt;
||Observe that the '''caption''' has to be declared immediately after the '''table '''start '''tag.'''&lt;br /&gt;
&lt;br /&gt;
'''Caption''' '''tag''' is not always mandatory.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:50&lt;br /&gt;
|| The content of the '''table '''is formatted into '''rows'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:54&lt;br /&gt;
||Observe that we have used the '''tr tag''' to create a new row in the '''table'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:00&lt;br /&gt;
||'''tr''' stands for '''table row'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||02:04&lt;br /&gt;
|| Here, we have used the '''th tag''' to declare the '''column headings.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:10&lt;br /&gt;
||'''th''' stands for '''table heading'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:13&lt;br /&gt;
||'''th '''is also not a mandatory '''tag'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:17&lt;br /&gt;
||We can use the '''th tag''' instead of the '''td tag''' in the first row, when we want '''column headings.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:26&lt;br /&gt;
|| Look at the '''td tags''' here. They are used to declare the value within each cell of the '''table'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:32&lt;br /&gt;
||'''td''' stands for '''table definition'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:36&lt;br /&gt;
|| This code will create a '''table '''with 2 '''rows '''and 2 '''columns'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:41&lt;br /&gt;
|| Let us open our file '''MyFirstPage.html. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:45&lt;br /&gt;
||I have already opened the '''html''' file in my editor and here is our code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:51&lt;br /&gt;
||This file is also available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:57&lt;br /&gt;
||Here, we will see how to format the content with the help of '''table'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:02&lt;br /&gt;
|| Pause the tutorial here for a while and do the following. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:06&lt;br /&gt;
|| Below the''' definition list''', type the sample '''table '''code, as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:12&lt;br /&gt;
|| Save the code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:15&lt;br /&gt;
|| Switch to the folder where we have saved the code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:19&lt;br /&gt;
|| Right-click on it and open with any web browser.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:23&lt;br /&gt;
|| Here is the output. &lt;br /&gt;
&lt;br /&gt;
We can see that our '''table '''is displayed.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:30&lt;br /&gt;
|| Here is the '''caption'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:33&lt;br /&gt;
|| These are the '''headings.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:36&lt;br /&gt;
|| The individual '''rows '''and their values.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:40&lt;br /&gt;
|| Though the content is displayed in rows and columns, it not appearing as a '''table'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:47&lt;br /&gt;
|| We can make it look better with the help of the following '''attributes''' and '''styles''':&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:53&lt;br /&gt;
|| '''Border''',  '''Width''',  '''Spacing''' and '''Padding''' , '''Rowspan''' and '''Columnspan'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:01&lt;br /&gt;
||  The '''Rowspan''' and '''Columnspan''' are declared inside the '''td '''and''' th tag'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:07&lt;br /&gt;
|| The others are declared inside the '''table''' start '''tag''' or in a '''style''' '''tag''' or '''attribute'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:14&lt;br /&gt;
|| Let us look at them one by one with the help of examples.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:19&lt;br /&gt;
|| Open our file '''mystyle.css''' in text editor &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:25&lt;br /&gt;
|| Type the code as shown here&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:29&lt;br /&gt;
|| Here '''1 pixel''' denotes the '''border''' thickness &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:33&lt;br /&gt;
||And '''Solid Blue''' denotes the color of the '''border'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:37&lt;br /&gt;
|| Save the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:39&lt;br /&gt;
|| Switch to the browser and refresh the page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:43&lt;br /&gt;
|| We can see that the '''table''' now has an outer '''border'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:48&lt;br /&gt;
|| To put a '''border''' for the '''rows '''and '''columns''', we have to specify the '''border style '''for the '''td''' and '''th tags'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:56&lt;br /&gt;
|| In '''mystyle.css''' file, next to '''table''' add &lt;br /&gt;
&lt;br /&gt;
'''comma space th comma tr comma td'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:08&lt;br /&gt;
||This will set the border for each of the '''rows '''and '''columns '''in the '''table'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:13&lt;br /&gt;
|| Let us also set the width of the '''table''' using the '''width''' '''attribute'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:19&lt;br /&gt;
||So next to the '''border attribute''', type this code.&lt;br /&gt;
&lt;br /&gt;
'''width colon 200 pixels semicolon.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:27&lt;br /&gt;
||This will set the width of the '''table''' to '''200 pixels'''.&lt;br /&gt;
&lt;br /&gt;
Note that the values can be in any units.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:36&lt;br /&gt;
|| Save the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:38&lt;br /&gt;
|| Switch to the browser and refresh the page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:42&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Now we have the '''borders '''for '''rows '''and '''columns '''too.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:48&lt;br /&gt;
|| The width of the '''table''' is adjusted as per the value we gave, which is '''200 pixels'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:55&lt;br /&gt;
||Note that this makes the content wrap to the next line.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:00&lt;br /&gt;
|| Next, we will look at the other two '''table attributes '''which are '''spacing''' and '''padding'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:06&lt;br /&gt;
||  The space between the '''cells''' is defined with the help of '''Border Spacing'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:12&lt;br /&gt;
|| The space between the '''cell''' content and the '''cell border '''is defined with the help of '''Padding'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:18&lt;br /&gt;
|| Let us switch to the editor window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:22&lt;br /&gt;
|| In the '''mystyle.css''' file, next to width &lt;br /&gt;
&lt;br /&gt;
type '''border hyphen spacing colon 5pixel semi-colon'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:33&lt;br /&gt;
||This will set the '''space''' between the '''borders '''as '''5 pixels'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:38&lt;br /&gt;
|| Then let us add the '''padding space '''for the '''cell''' contents and the '''borders'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:44&lt;br /&gt;
||After the '''border spacing''', type the following.&lt;br /&gt;
&lt;br /&gt;
'''padding colon 5pixels semi-colon'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:51&lt;br /&gt;
||This will set the '''padding''' space as '''5 pixels'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:55&lt;br /&gt;
|| Save the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:57&lt;br /&gt;
|| Switch to the browser and refresh the page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:01&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:04&lt;br /&gt;
|| What if we want to merge two '''cells''' of a '''row'''? &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:08&lt;br /&gt;
||Let’s say I want only one '''heading '''over here. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:12&lt;br /&gt;
||And instead of two '''rows '''for the 1st '''column''', I need only one.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:16&lt;br /&gt;
||This can be done with the help of '''rowspan '''and '''columnspan attributes'''.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:24&lt;br /&gt;
|| Switch to the editor window.&lt;br /&gt;
&lt;br /&gt;
Go to '''myfirstpage.html''' file&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:31&lt;br /&gt;
|| In the '''table section '''remove the line for '''Heading 2 '''&lt;br /&gt;
&lt;br /&gt;
And then for the '''Row 2 Value 1''' line.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:39&lt;br /&gt;
|| I want the '''Heading 1''' to be spanned across the two cells, columnwise.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:45&lt;br /&gt;
||So inside the '''Heading 1’s th tag''', type&lt;br /&gt;
&lt;br /&gt;
'''colspan equal to within single quotes 2 '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:53&lt;br /&gt;
|| Next I want the '''Row 1 Value 1''' to be spanned for 2 cells row wise.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:00&lt;br /&gt;
||So inside the '''Row 1 Value 1’s td tag''', type '''rowspan equal to within single quotes 2 '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:08&lt;br /&gt;
|| Save the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:11&lt;br /&gt;
|| Switch to the browser and refresh the page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:15&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
We got the output as expected.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:20&lt;br /&gt;
|| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:25&lt;br /&gt;
|| In this tutorial, we have learnt how to create '''Tables '''in '''HTML.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:30&lt;br /&gt;
||We have also learnt to set the '''Table Attributes '''such as&lt;br /&gt;
&lt;br /&gt;
'''Border''',  '''Width''',  '''Spacing '''and''' padding''',  '''Row Span '''and''' Column Span '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:40&lt;br /&gt;
|| As an assignment- &lt;br /&gt;
&lt;br /&gt;
Open the file '''MyHomePage.html''' which you have created earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:47&lt;br /&gt;
|| Create a '''table''' as shown below&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:51&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project. &lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:59&lt;br /&gt;
|| The Spoken Tutorial Project team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:09&lt;br /&gt;
|| Please post your timed queries in forum. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:13&lt;br /&gt;
|| Spoken Tutorial Project is funded by  MHRD, Government of India.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:19&lt;br /&gt;
|| This is Praveen from IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thank you for joining&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>