HTML Tables - PowerPoint Presentation

Summary

This PowerPoint presentation explains how to create and manipulate tables in HTML. Learn about table rows, columns, headers, and how to align table content.

Full Transcript

HTML Tables HTML: Tables ► A table in HTML consists of table cells inside rows and columns ► Each table row starts with a and end with a tag; tr stands for table row. ► Table headers are defined with th elements, each th element represents a table cell. ► Each table cell is defined by...

HTML Tables HTML: Tables ► A table in HTML consists of table cells inside rows and columns ► Each table row starts with a and end with a tag; tr stands for table row. ► Table headers are defined with th elements, each th element represents a table cell. ► Each table cell is defined by a and a tag. ► Everything between and are the content of the table cell; td stands for table data. HTML: Tables ► Vertical Table Headers: ► To use the first column as table headers, define the first cell in each row as a th element: HTML: Tables ► Aligning Table Headers: ► By default, table headers are bold and centered: ► To left-align the table headers, use the CSS text-align property. HTML: Tables ► Headings for multiple columns: ► Headings can be placed over multiple columns ► This is normally done with related information. ► Take a look at the example

Use Quizgecko on...
Browser
Browser