maoffense01 Posted April 13, 2015 Share Posted April 13, 2015 What is table?HTML table. An HTML structure for creating rows and columns on a Web page. The Table tag defines the overall table and the Table Row (TR) tag is used to build each row. The Table Data (TD) tag defines the actual data. Prior to HTML5, tables were often used for virtually every element on the page. Like the table below.How to create a table?First,you won't learn to create table without learning how to form it.There's 4 commands for creating table that you shall know.But first,let's go what are the 4 commands and their function.4 Commands and Functions.You need to know these commands so that you can create table yourself,without the help of others,and looking for some tables:1. [table ] and [ /table] - these two commands are just the way to make a table.Remember,every page has their own style of html table.2. [ tr] (Table Row) - this command is an action command that will bring you below to type in there.I mean,in this command,the starting point will go below.For example,in this page.You're going to comment to a topic.If you press "Enter",the starting point of text will go below.Then that's the work of [tr].Real example:I must do it.Yeah,I'll do it!After the "I must do it" sentence,I pressed "Enter",then the sentence "Yeah,I'll do it!" is below the first sentence.Gets?3. [ th] and [/th ] (Table Header)- this command will put a header to your table.To use it,type (the text you want).That's it! To form the table header properly,you must choose the subject of whatever you will put in the data.For example,Lebron James is what I want to put in data,then Lebron James fit the subject of name,because Lebron James is a name,gets?4. [td ] and [/td ] (Table Data)- this command will put a data to your table.To use it,type (the text you want).That's it! To form it properly,this shall fit the header.For example,the header is "Sports",then you shall choose a kind of sports for the data,gets?ExamplesCode = [table ][tr ][ th]Name[th ]Sports[tr ][td ]Lebron James[td ]BasketBall[tr ][td ]John Cena[td ]Wrestling[/td ][/table ]Code = [table ][tr ][ th]Name[th ]Interest[tr ][td ]Albert[td ]Computer[tr ][td ]John[td ]Foods[/td ][/table ]Note:When creating a real table,do not use spaces inside the brackets "[ ]".I used spaces inside brackets because if I don't put space inside the brackets,the code will be like as real table.Only use space in brackets just for code example!Here the tutorial ends!Hope I helped you all! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now