Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 602 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 602 Bytes

Manipulate DOM with javascript

In this project, I show how to work with DOM (Document Object Model) using Javascript. We're working with:

  • Access DOM element using getElementById and querySelector
  • change DOM content using innerHTML and textContent
  • Show/hide elements using conditional ternary operator
  • setAttribute method
  • forEach Array method
  • template strings
  • classList property
  • HTML data-* attribute
  • dataset property

YouTube tutorial

Manipulate DOM with javascript

Run

Open index.html in your favourite browser!