Answers for "Html tab"

4

Html tab

 
Posted by: Guest on May-23-2020
18

add tabs html

&nbsp;  <!-- 1 space -->
&ensp;	<!-- tab; 2 space -->
&emsp;	<!-- tab; 4 space -->
Posted by: Guest on April-26-2020
1

html tab character

&#9; or &tab;
Posted by: Guest on June-10-2020
2

tab space in html

<p style="text-indent :5em;" > </p>
Posted by: Guest on June-15-2020
0

adding space tab in html

<d style="padding-left:1em;" > </d>
Posted by: Guest on June-16-2020
3

javascript tabs example

const showHideAll =(list)=>{
  for(var i = 0; i < list.length; i++){
      list[i].classList.remove('show');
      list[i].classList.add('hide'); // depending on what you're doing
  }
}

window.onload = function() {
  let innerDiv = document.getElementsByClassName("inner-description");
  let clicked = document.querySelectorAll('.show-hide-description');
  clicked.forEach((item, i) => {
    let clickedId = item.id;
    document.querySelector(`#${clickedId}`).addEventListener('click',()=>{
      let clickedIdDescription = document.getElementById(`${clickedId}-description`);
      if(clickedIdDescription.classList.contains('show')){
        showHideAll(innerDiv)
      } else {
        showHideAll(innerDiv)
        clickedIdDescription.classList.remove('hide');
        clickedIdDescription.classList.add('show');
      }
    })
  });
}
Posted by: Guest on August-06-2020

Browse Popular Code Answers by Language