Web Development - HTML, CSS & JavaScript
Learn to code and become a Web Developer with HTML, CSS, JavaScript , Reactjs, Wordpress, PHP, Mern & Nodejs knowledge Managed by: @love_data
Show more📈 Analytical overview of Telegram channel Web Development - HTML, CSS & JavaScript
Channel Web Development - HTML, CSS & JavaScript (@javascript_courses) in the English language segment is an active participant. Currently, the community unites 55 401 subscribers, ranking 2 390 in the Technologies & Applications category and 6 098 in the India region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 55 401 subscribers.
According to the latest data from 05 December, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -257 over the last 30 days and by -17 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 2.98%. Within the first 24 hours after publication, content typically collects 1.08% reactions from the total number of subscribers.
- Post reach: On average, each post receives 1 653 views. Within the first day, a publication typically gains 600 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 3.
- Thematic interests: Content is focused on key topics such as javascript, css, object, html, array.
📝 Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
“Learn to code and become a Web Developer with HTML, CSS, JavaScript , Reactjs, Wordpress, PHP, Mern & Nodejs knowledge
Managed by: @love_data”
Thanks to the high frequency of updates (latest data received on 06 December, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.
document.getElementById("parent")
.addEventListener("click", function() {
console.log("Parent Clicked");
});
document.getElementById("child")
.addEventListener("click", function() {
console.log("Child Clicked");
});
Clicking the button produces:
Child Clicked
Parent Clicked
This happens because the event bubbles from the child to the parent.
💻 Real-World Example: Interactive Counter
Let's create a simple counter using DOM manipulation.
<h2 id="count">0</h2>
<button id="increase">Increase</button>
<button id="decrease">Decrease</button>
let count = 0;
let display = document.getElementById("count");
document.getElementById("increase")
.addEventListener("click", function() {
count++;
display.textContent = count;
});
document.getElementById("decrease")
.addEventListener("click", function() {
count--;
display.textContent = count;
});
This example demonstrates how JavaScript updates webpage content based on user interaction.
⚡ Quick Revision
• document → Represents the webpage.
• getElementById() → Selects an element by ID.
• querySelector() → Selects the first matching element.
• querySelectorAll() → Selects all matching elements.
• textContent → Changes or retrieves text.
• innerHTML → Changes or retrieves HTML markup.
• style → Changes CSS styles.
• classList → Manages CSS classes.
• addEventListener() → Attaches an event handler.
• createElement() → Creates an HTML element.
• appendChild() → Adds an element.
• remove() → Removes an element.
• .value → Gets an input's value.
• parentElement → Gets the parent element.
💡 Key Takeaways
• DOM connects JavaScript with HTML.
• JavaScript can dynamically modify webpage content and styling.
• Events make webpages interactive.
• DOM manipulation is essential for frontend development.
• Understanding the DOM is a foundation for learning frameworks like React.
📌 Double Tap ❤️ For More
-----
2.33 ₽ · /balance_helpclick, When an element is clicked.
• mouseover, When the pointer moves over an element.
• mouseout, When the pointer leaves an element.
• keydown, When a keyboard key is pressed.
• submit, When a form is submitted.
• change, When an input value changes.
<button id="btn">Click Me</button>
let button = document.getElementById("btn");
button.addEventListener("click", function() {
console.log("Button Clicked!");
});
Whenever the user clicks the button, the message appears in the console.
7️⃣ Creating New HTML Elements
JavaScript can create HTML elements dynamically.
let paragraph = document.createElement("p");
paragraph.textContent = "This is a new paragraph.";
document.body.appendChild(paragraph);
Here:
• createElement() creates a new element.
• textContent adds its text.
• appendChild() inserts it into the page.
8️⃣ Removing HTML Elements
You can remove elements using remove().
<p id="text">Remove this paragraph</p>
let paragraph = document.getElementById("text");
paragraph.remove();
The paragraph will be removed from the webpage.
9️⃣ Working with Input Fields
JavaScript can read values entered by users.
<input type="text" id="username" placeholder="Enter your name">
<button id="submit">Submit</button>
let button = document.getElementById("submit");
button.addEventListener("click", function() {
let name = document.getElementById("username").value;
console.log("Welcome " + name);
});
The .value property retrieves the current value of an input field.
🔟 DOM Traversal
DOM traversal means moving between related HTML elements.
Some useful properties:
• parentElement, Gets the parent element.
• children, Gets the child elements.
• firstElementChild, Gets the first child element.
• lastElementChild, Gets the last child element.
• nextElementSibling, Gets the next sibling.
• previousElementSibling, Gets the previous sibling.
<div id="parent">
<p>First</p>
<p>Second</p>
</div>
let parent = document.getElementById("parent");
console.log(parent.children);
console.log(parent.firstElementChild);
1️⃣1️⃣ Event Object
When an event occurs, JavaScript provides an event object containing information about that event.
button.addEventListener("click", function(event) {
console.log(event.type);
console.log(event.target);
});
Output:
click
<button id="btn">Click Me</button>
Some useful event properties:
• event.type, Type of event.
• event.target, Element that triggered the event.
• event.preventDefault(), Prevents the browser's default action.
1️⃣2️⃣ Event Bubbling
Event bubbling means an event triggered on a child element can propagate upward to its parent elements.
For example:
<div id="parent">
<button id="child">Click Me</button>
</div><!DOCTYPE html>
<html>
<body>
<h1>Hello World</h1>
<p>Welcome to JavaScript</p>
</body>
</html>
JavaScript can access and modify these elements through the DOM.
2️⃣ Selecting HTML Elements
Before changing an element, we need to select it.
getElementById()
Selects an element using its ID.
<h1 id="title">Hello World</h1>
let heading = document.getElementById("title");
console.log(heading);
querySelector()
Selects the first element matching a CSS selector.
let heading = document.querySelector("#title");
let paragraph = document.querySelector(".description");
querySelectorAll()
Selects all elements matching a CSS selector.
let items = document.querySelectorAll("p");
console.log(items);
Other selection methods:
• getElementsByClassName(), Selects elements by class name.
• getElementsByTagName(), Selects elements by tag name.
3️⃣ Changing Text Content
JavaScript allows us to change the text inside HTML elements.
<h1 id="heading">Old Heading</h1>
let heading = document.getElementById("heading");
heading.textContent = "Welcome to JavaScript!";
The heading will now display:
Welcome to JavaScript!
textContent vs innerHTML
• textContent changes or retrieves text.
• innerHTML reads or changes HTML markup inside an element.
Example:
document.getElementById("heading").innerHTML =
"<span>Hello JavaScript</span>";
Use innerHTML carefully with untrusted input because inserting unsafe HTML can create security vulnerabilities.
4️⃣ Changing CSS Styles
You can dynamically change the styling of an element.
<p id="message">Hello World</p>
let message = document.getElementById("message");
message.style.color = "blue";
message.style.fontSize = "24px";
message.style.backgroundColor = "lightyellow";
The paragraph's appearance will change instantly.
5️⃣ Adding and Removing CSS Classes
Instead of changing individual styles, you can use classList.
add()
element.classList.add("active");
remove()
element.classList.remove("active");
toggle()
Adds a class if it doesn't exist and removes it if it does.
element.classList.toggle("active");
contains()
Checks whether an element has a particular class.
console.log(element.classList.contains("active"));
