Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to insert multiple checkbox horizontally in one table cell?

I am learning HTML and I wonder if I can insert multiple checkbox in a single table cell. I can only create one checkbox in a table cell right now. Below is an example of my code.

<td colspan="2" rowspan="1" ><input type="checkbox" name="7_4" value="7_4" /> M</td>

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can any number of checkboxes as you want:

<td colspan="2" rowspan="1" >
<input type="checkbox" name="7_4" value="7_4" /> M
<input type="checkbox" name="7_5" value="7_5" /> N
<input type="checkbox" name="7_6" value="7_6" /> O
</td>

But try to give them a unique name and value.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading