Home > Mobile >  how i can build HTML table which contain merged cells on the first column and 2 cells on the second
how i can build HTML table which contain merged cells on the first column and 2 cells on the second

Time:11-27

I want to build this table in HTML :-

enter image description here

so how i can do so?

Thanks

CodePudding user response:

You can use the rowspan property. Check this: https://www.w3schools.com/html/html_table_colspan_rowspan.asp

CodePudding user response:

You can use rowspan in that case, if it's horizontal merge you can use colspan

Live example: https://codesandbox.io/s/table-row-col-span-43ryx

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-rowspan

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan

  •  Tags:  
  • html
  • Related