DOM Manipulation

Dive into the world of element selection and modification in the DOM. Practice selecting elements using CSS selectors, traverse the DOM hierarchy, and manipulate their properties, content, and styles.

All Practice Questions

Coding Format

Questions List

  • jQuery.cssImplement a jQuery-like function that sets the style of a DOM element
    Languages
    HTMLCSSJSTS
  • getElementsByStyleImplement a function to get all DOM elements that are rendered using the specified style
    Languages
    HTMLCSSJSTS
  • getElementsByTagNameImplement a function to get all DOM elements that match a tag
    Languages
    HTMLJSTS
  • HTML SerializerImplement a function to serialize an object into an HTML string with indentation
    Languages
    HTMLJSTS
  • Identical DOM TreesImplement a function to determine if two DOM trees are the same
    Languages
    HTMLJSTS
  • jQuery Class ManipulationImplement a set of jQuery-like functions that manipulates classes on a DOM element
    Languages
    HTMLCSSJSTS
  • Text SearchImplement a function to highlight text if a searched term appears within it
    Languages
    HTMLJSTS
  • getElementsByClassNameImplement a function to get all DOM elements that contain the specified classes
    Languages
    HTMLCSSJSTS
  • getElementsByTagNameHierarchyImplement a function to get all DOM elements that match a tag hierarchy
    Languages
    HTMLJSTS
  • Table of ContentsImplement a function to construct a table of contents from an HTML document
    Languages
    HTMLJSTS