How can you set the font size of an HTML element using JavaScript?
A). element.style.fontSize = 'size';
B). element.style.fontsize = 'size';
C). element.fontsize = 'size';
D). element.size = 'size';
How can you add a CSS class to an HTML element using JavaScript?
A). element.classList.add('className');
B). element.className = 'className';
C). element.setAttribute('class', 'className');
D). element.addClass('className');
How can you change the text content of an HTML element using JavaScript?
A). element.textContent = 'New Content';
B). element.innerText = 'New Content';
C). element.innerHTML = 'New Content';
D). element.value = 'New Content';
How can you hide an HTML element using JavaScript?
A). element.style.display = 'none';
B). element.style.visibility = 'hidden';
C). element.visible = false;
D). element.style.opacity = 0;
How can you set the text alignment of an HTML element using JavaScript?
A). element.style.textAlign = 'alignment';
B). element.style.align = 'alignment';
C). element.textAlign = 'alignment';
D). element.align = 'alignment';
How can you set the font color of an HTML element using JavaScript?
A). element.style.color = 'color';
B). element.style.fontColor = 'color';
C). element.fontColor = 'color';
D). element.color = 'color';
How can you set the border color of an HTML element using JavaScript?
A). element.style.borderColor = 'color';
B). element.style.border.color = 'color';
C). element.border.color = 'color';
D). element.color = 'color';
How can you add an attribute to an HTML element using JavaScript?
A). element.setAttribute('attributeName', 'value');
B). element.attributeName = 'value';
C). element.attributeName('value');
D). element.attributeName.add('value');
How can you disable an HTML button using JavaScript?
A). element.disabled = true;
B). element.setAttribute('disabled', 'disabled');
C). element.disable();
D). element.disable = true;
How can you set the border width of an HTML element using JavaScript?
A). element.style.borderWidth = 'width';
B). element.style.border.width = 'width';
C). element.border.width = 'width';
D). element.width = 'width';