Don't forget to hit the ⭐ if you like this repo.
Here are the answers to the questions:
- a) Document Object Model
- c)
document.getElementById()
- c) The title of the current web page
- d)
element.textContent
- c)
element.classList.add()
- c) The tag name of the
body
element - a)
document.createElement()
- c) To retrieve the value of an attribute from an HTML element
- c) The width of the browser window
- b)
element.addEventListener()
- a) To manipulate the CSS properties of an element
- a) The number of links in the current web page
- c)
document.getElementsByClassName()
- a) The number of forms in the current web page
- a)
element.remove()
- a) To access the parent element of an HTML element
- a) The number of images in the current web page
- b)
inputElement.value
- a) To append an HTML element to another HTML element
- a) The tag name of the
head
element - c)
imageElement.setAttribute('src', 'new-source.jpg')
- b) To select all elements that match a CSS selector
- a) The tag name of the
html
element - b)
element.classList.contains('className')
- c) To insert HTML content into an element
- a) The character set of the current web page
- a)
document.createTextNode()
- a) To retrieve the width of an HTML element
- a) The name of the document type
- c)
element.display = 'none'
- a) To access the next sibling element of an HTML element
- c) The width of the browser window
- b)
element.setAttribute('attribute', 'newValue')
- a) To access the list of CSS classes of an HTML element
- a) The source URL of the current script file
- a)
element.hasAttribute('attribute')
- a) To access the first child element of an HTML element
- a) The date and time when the current web page was last modified
- a)
element.style.backgroundColor = 'color'
- a) To access the previous sibling element of an HTML element
- a) The number of embed elements in the DOM
- b)
selectElement.value
- a) To remove an HTML element from its parent element
- a) The tag name of the currently focused element
- a)
element.style.display === 'none'
- a) To scroll an HTML element into view
- a) The number of script elements in the DOM
- d)
element.parentElement
- a) To retrieve the height of an HTML element
- a)
true
if the current web page has focus,false
otherwise
Please create an Issue for any improvements, suggestions or errors in the content.
You can also contact me using Linkedin for any other queries or feedback.