How do I show blank cells in HTML?
The usual trick:
The usual trick is to put (which is a so-called escape sequence, or formally entity reference, for a character called no-break space) into a table cell. The trick is not very logical, since the basic role of the character denoted by is to act as no-break space.
How do I hide blank cells in HTML?
#Using :empty Pseudo-Class
You can use the :empty pseudo-class on <th> and/or <td> to hide elements that have no children — i.e. element nodes or text (including whitespace).