CSS 데모: visibility 데모 버튼을 클릭해 보세요!
selector {
    visibility: visible | hidden | collapse
}
/* 키워드 값 */
visibility: visible; /* 초깃값 */
visibility: hidden;
visibility: collapse;

/* 전역 값 */
visibility: inherit;
visibility: initial;
visibility: revert;
visibility: revert-layer;
visibility: unset;
<ol>
    <li>item</li>
    <li>item</li>
    <li class="hidden-item">나를 숨겨줘! <span>나는 보일거야!</span></li>
    <li>item</li>
    <li>item</li>
</ol>
.hidden-item {
    visibility: hidden;
}
.hidden-item span {
    visibility: visible;
    color: red;
}
실제 적용된 모습
<table>
    <caption>hidden이 적용된 row</caption>
    <tr>
        <td>라면</td>
        <td>라면</td>
        <td>라면</td>
        <td>라면</td>
    </tr>
    <tr class="hidden">
        <td>김밥</td>
        <td>김밥</td>
        <td>김밥</td>
        <td>김밥</td>
    </tr>
    <tr>
        <td>돈까스</td>
        <td>돈까스</td>
        <td>돈까스</td>
        <td>돈까스</td>
    </tr>
</table>
<hr>
<table>
    <caption>collapse가 적용된 row</caption>
    <tr>
        <td>라면</td>
        <td>라면</td>
        <td>라면</td>
        <td>라면</td>
    </tr>
    <tr class="collapse">
        <td>김밥</td>
        <td>김밥</td>
        <td>김밥</td>
        <td>김밥</td>
    </tr>
    <tr>
        <td>돈까스</td>
        <td>돈까스</td>
        <td>돈까스</td>
        <td>돈까스</td>
    </tr>
</table>
table,
td {
  border: 1px solid;
}
.hidden {
    visibility: hidden;
}
.collapse {
    visibility: collapse;
}
실제 적용된 모습