Write The Code For Creating A Table With 3 Rows And 2 Columns With A ...

Skip to ContentProfile image of boxey4Submitted by boxey4about 12 yearsWrite the code for creating a table with 3 rows and 2 columns with a border of 5px

help!

Answer 52950ad6abf821f2a70003c7

1 vote

Permalink

CSS

table { border-collapse: collapse; border: 5px solid black; width: 100%; } td { width: 50%; height: 2em; border: 1px solid #ccc; }

HTML

<table> <tbody> <tr><td></td><td></td></tr> <tr><td></td><td></td></tr> <tr><td></td><td></td></tr> </tbody> </table>

This is only an example. You can ignore the CSS. To see this in your browser, save the following code to Notepad or a text editor and save with UTF-8 encoding, as, sample.html. Locate the file and click on it, or if your text editor has a Run menu, launch in your browser from there.

===== Everything between these lines ===== <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Sample table</title> <style> table { border-collapse: collapse; border: 5px solid black; width: 100%; } td { width: 50%; height: 2em; border: 1px solid #ccc; } </style> </head> <body> <table> <tbody> <tr><td></td><td></td></tr> <tr><td></td><td></td></tr> <tr><td></td><td></td></tr> </tbody> </table> </body> </html> ========================================== Profile image of mtfSubmitted by mtfabout 12 years

Popular free courses

  • Free course

    Learn SQL

    In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.
    • Checker DenseBeginner Friendly.4 Lessons
  • Free course

    Learn JavaScript

    Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
    • Checker DenseBeginner Friendly.11 Lessons
  • Free course

    Learn HTML

    Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Checker DenseBeginner Friendly.6 Lessons
Explore full catalog

Từ khóa » Html Table 3 Columns 2 Rows