A page built for experimentation. Open DevTools and start exploring.
Open your browser's console and try these commands:
Press F12 or Cmd+Option+I (Mac) / Ctrl+Shift+I (Windows) to open DevTools.
document.querySelector('.color-box')document.querySelector('.color-box').style.borderRadius = '50%'document.querySelectorAll('button')document.querySelectorAll('li').lengthThese elements are here for you to manipulate:
Counter: 0
This paragraph is waiting for you to change it using the console.
Here's some text with a highlighted word inside.
Try: document.getElementById('editable-text').innerHTML = 'I changed this!'
Right-click these images and select "Inspect" to see their HTML:
Try: document.getElementById('img-1').src = 'https://picsum.photos/400/300?random=99'
Practice selecting specific items from a list:
Try: document.querySelector('.special').style.color = 'violet'
Try: document.querySelectorAll('[data-category="fruit"]')
Type these in the console. Watch what happens.
How many links are on this page? How many images?
Refresh to undo.
Now experiment on your own. Try to:
If you get an error, read it. We'll talk about errors on Day 2.
When you want to learn more: