HTML, CSS and JavaScript for Beginners
The querySelector Function
A course by Yannick Gregoire , Creative Developer
About the video: The querySelector Function
Overview
“Much like CSS, in Javascript we can also select elements from the DOM. Let's see how that works.”
In this video lesson Yannick Gregoire addresses the topic: The querySelector Function, which is part of the Domestika online course: HTML, CSS and JavaScript for Beginners. Learn the fundamentals of creative web design to build interactive sites from scratch using HTML, CSS, and JavaScript.
Partial transcription of the video
“Okay, so JavaScript is actually able to select HTML elements from the DOM. much like CSS selectors. Let's see how this works. So JavaScript is able to select elements from the DOM. Much like CSS. And in this lesson, we will learn how to do that. So, Let me go ahead and delete all the variables. and functions that we wrote here. And We want to Select the empty area here because we want to be able to make it bigger and smaller. for our animation. So one way to select this element And I will. Assign it right away to a new variable. So let's say I like empty element equals And then there is a f...”
This transcript is automatically generated, so it may contain mistakes.
Course summary for: HTML, CSS and JavaScript for Beginners
-
Category
Web & App Design -
Areas
CSS, HTML, JavaScript, Programming, Web Design, Web Development

Yannick Gregoire
A course by Yannick Gregoire
Yannick Gregoire is an Amsterdam-based creative developer. He originally studied multimedia design and later gravitated towards coding before combining both to start his own web design and development practice. He loves the intersection of logic and aesthetics that is intrinsic in his work, connecting the structure, flow, and timing of his websites for practical yet attractive results.
Since launching his career, Yannick has collaborated with brands like Mitsubishi, Canon and Sony. He has a particular passion for pairing with individuals and organizations that have a positive social impact, which has led him to build platforms for the Dutch Red Cross and N-Ost: Climate in Central Asia.
- 98% positive reviews (193)
- 13,334 students
- 22 lessons (2h 58m)
- 26 additional resources (6 files)
- Online and at your own pace
- Available on the app
- Audio: English, Italian, Portuguese
- English · Spanish · Portuguese · German · French · Italian · Polish · Dutch
- Level: Beginner
- Unlimited access forever