Тёмный

JavaScript DOM Project: Creating Dynamic Elements with Conditional Styling [Project 1] 

Tech is so cool!
Подписаться 607
Просмотров 442
50% 1

The project in the video involves creating a button in HTML that, when clicked, generates new square elements on the screen. Each square has a number displayed inside it, indicating its position. Every fifth square is styled differently, appearing as a white square instead of black. The project focuses on using JavaScript to handle event listeners, dynamically creating elements, and applying conditional logic to style every fifth element uniquely.
The video explains core JavaScript methods essential for becoming a web developer. The instructor introduces a project where a button in HTML generates new square elements on the screen every time it is clicked. Every fifth element, however, appears differently-styled as a white square instead of black. The instructor walks through the process step-by-step, starting with creating an HTML file, adding the button, and using CSS to style the squares. The rest of the functionality is handled with JavaScript, including setting up an event listener for the button, creating the square elements, and adding a counter to track the number of squares. Additionally, the video covers how to use conditionals (if statements) to apply a unique class to every fifth square, changing its appearance. The goal is to teach key JavaScript methods like document.createElement(), event handling, and DOM manipulation.
#javascript #course #html

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@smokemp4
@smokemp4 9 дней назад
Publish videos with thumbnails.. That'll be more reachable
@justtekina6709
@justtekina6709 7 дней назад
video came out at perfect timing, im actually coding my first website, i have it live actually, and its all spagetti code, i been using chat gpt to help me code the website, but i hav elements and so on i have a vison for, and chat gpt isnt helpful exactly, but point is i see the importance of the DOM now i'm interested in understanding html5 canvas better, and you explain the very small bits, that helps a lot, which is, good, like the skeleton thing, you have your audience in mind and not just doing a tutorial
@gabrielabalde8484
@gabrielabalde8484 9 дней назад
Congrats on the advances that you are making month after month!
Далее
JavaScript Course - DOM  (10/20) #javascript
1:46:27
Being Competent With Coding Is More Fun
11:13
Просмотров 86 тыс.
multi step form tutorial next js react hook form
2:26:36
Просмотров 1,2 тыс.
Vue.js Tutorial: Beginner to Front-End Developer
4:21:59
Просмотров 345 тыс.
Kubernetes 101 workshop - complete hands-on
3:56:03
Просмотров 1,6 млн