Home
HTML
HTML Table
Example 1: HTML Table
Run ❯❯
<!DOCTYPE html> <html> <head> <title>Basic HTML Table Example</title> </head> <body> <h1>Basic HTML Table</h1> <table> <tr> <th>Name</th> <th>Math</th> <th>English</th> <th>History</th> </tr> <tr> <td>Edwin Miller</td> <td>75</td> <td>80</td> <td>66</td> </tr> <tr> <td>Jacob Johnson</td> <td>65</td> <td>56</td> <td>60</td> </tr> <tr> <td>Steve Thompson</td> <td>71</td> <td>81</td> <td>79</td> </tr> <tr> <td>Isabella Robinson</td> <td>67</td> <td>51</td> <td>45</td> </tr> <tr> <td>Benjamin Mitchell</td> <td>40</td> <td>42</td> <td>51</td> </tr> </table> <p>The table above has no border. Because we have not applied any style to the table. We will learn about the table styling in coming chapters.</p> </body> </html>