How to create a table in HTML (with pictures)

Table of contents:

How to create a table in HTML (with pictures)
How to create a table in HTML (with pictures)
Anonim

It is quite difficult to create a table in HTML. But with the steps outlined in this article, you should be able to create one for your site.

Steps

Italicize Text in HTML Step 1
Italicize Text in HTML Step 1

Step 1. Open a simple text editor program such as Notepad or WordPad on Windows, or on Mac open TextEdit

Create a Table in HTML Code Step 2
Create a Table in HTML Code Step 2

Step 2. Enter all the text you want to see in front of the table. 3 Define the use of the table for the HTML document by entering the tag

.

Create a Table in HTML Code Step 3
Create a Table in HTML Code Step 3

Step 4. Press Enter

Create a Table in HTML Code Step 4
Create a Table in HTML Code Step 4
Create a Table in HTML Code Step 5
Create a Table in HTML Code Step 5

Step 5. Enter the tag for opening table-row using the tag

… 6 Don't forget to build all the remaining elements from left to right.
Create a Table in HTML Code Step 7
Create a Table in HTML Code Step 7

Step 7. Press Enter

Create a Table in HTML Code Step 8
Create a Table in HTML Code Step 8

Step 8. Enter a start tag for the table heading using the tag

.

Create a Table in HTML Code Step 9
Create a Table in HTML Code Step 9

Step 9. Enter the title you want to use for the first column

Create a Table in HTML Code Step 10
Create a Table in HTML Code Step 10

Step 10. Enter a closing tag for the table heading element using the tag

Create a Table in HTML Code Step 11
Create a Table in HTML Code Step 11

Step 11. Press Enter

Create a Table in HTML Code Step 12
Create a Table in HTML Code Step 12

Step 12. Repeat the steps (arranging items in columns from left to right)

Create a Table in HTML Code Step 13
Create a Table in HTML Code Step 13

Step 13. Close this line by entering the tag

Create a Table in HTML Code Step 14
Create a Table in HTML Code Step 14

Step 14. Press Enter

Create a Table in HTML Code Step 15
Create a Table in HTML Code Step 15

Step 15. Start another line with a different tag

.
Create a Table in HTML Code Step 16
Create a Table in HTML Code Step 16

Step 16. Press Enter

Create a Table in HTML Code Step 17
Create a Table in HTML Code Step 17

Step 17. Enter the table data tag using the tag

.
Create a Table in HTML Code Step 18
Create a Table in HTML Code Step 18

Step 18. Enter the table data you want to include in each field. 19 Work from left to right, filling in the data from the columns shown above

Create a Table in HTML Code Step 20
Create a Table in HTML Code Step 20

Step 20. Cover each input with a tag

… 21 Repeat for all the data in the table that you have.

  • For those cells where there is no need to enter anything, enter

    and

    and nothing in between. This will be very useful for fields between two other fields.

    Create a Table in HTML Code Step 21
    Create a Table in HTML Code Step 21
Create a Table in HTML Code Step 22
Create a Table in HTML Code Step 22

Step 22 Close each line with a different tag

Create a Table in HTML Code Step 23
Create a Table in HTML Code Step 23

Step 23. Repeat each line down in addition to the lines

and

until each row is collected.

Create a Table in HTML Code Step 24
Create a Table in HTML Code Step 24

Step 24. Close the table with a tag

Create a Table in HTML Code Step 25
Create a Table in HTML Code Step 25

Step 25. Enter the following HTML text that you need in the rest of the document

Advice

Indent from each line so that you can understand what you are trying to do in your code

Warnings

  • If you accidentally enter too many columns of data where there is no table heading, they will still be shown, but they will look a little silly and the reader will not understand what this information is for.
  • Building tables on an HTML page is a tricky process to understand. First, practice on the external data to see what it looks like, then browse and place the new table in its place.
  • The HTML table code is best left to advanced HTML coders. However, after you follow these instructions, you too will become one of them.

Popular by topic