Complete Code Example
Here’s a complete HTML example with a table that has borders:
HTML
<!DOCTYPE html> < html > < head > < title >HTML Table with Border</ title > </ head > < body > < table border = "1" > < tr > < th >Header 1</ th > < th >Header 2</ th > < th >Header 3</ th > </ tr > < tr > < td >Data 1</ td > < td >Data 2</ td > < td >Data 3</ td > </ tr > < tr > < td >Data 4</ td > < td >Data 5</ td > < td >Data 6</ td > </ tr > </ table > </ body > </ html > |
Output
How to Create Table in HTML with Border without CSS ?
Creating a table in HTML is a fundamental skill for web developers. Tables are used to organize data in a grid-like structure, making it easier to read and understand. In this article, we will learn how to create a simple table in HTML with borders, without using CSS styling.