In this article we will learn about some of the frequently asked HTML programming questions in technical like “Html tab” Code Answer’s. When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. Error or stack handling on html was simple and easy. An error message with filename, line number and a message describing the error is sent to the browser. This tutorial contains some of the most common error checking methods in HTML. Below are some solution about “Html tab” Code Answer’s.
add tabs html
xxxxxxxxxx
1
<!-- 1 space -->
2
  <!-- tab; 2 space -->
3
  <!-- tab; 4 space -->
Html tab
xxxxxxxxxx
1
 
html tab character
xxxxxxxxxx
1
	 or &tab;
tab space in html
xxxxxxxxxx
1
<p style="text-indent :5em;" > </p>
adding space tab in html
xxxxxxxxxx
1
<d style="padding-left:1em;" > </d>
javascript tabs example
xxxxxxxxxx
1
const showHideAll =(list)=>{
2
for(var i = 0; i < list.length; i++){
3
list[i].classList.remove('show');
4
list[i].classList.add('hide'); // depending on what you're doing
5
}
6
}
7
8
window.onload = function() {
9
let innerDiv = document.getElementsByClassName("inner-description");
10
let clicked = document.querySelectorAll('.show-hide-description');
11
clicked.forEach((item, i) => {
12
let clickedId = item.id;
13
document.querySelector(`#${clickedId}`).addEventListener('click',()=>{
14
let clickedIdDescription = document.getElementById(`${clickedId}-description`);
15
if(clickedIdDescription.classList.contains('show')){
16
showHideAll(innerDiv)
17
} else {
18
showHideAll(innerDiv)
19
clickedIdDescription.classList.remove('hide');
20
clickedIdDescription.classList.add('show');
21
}
22
})
23
});
24
}
25