🚀 CYBER WEEK SALE: 50% OFF on JavaScript Fundamentals 💪

Show or Hide any HTML element with a Button Click

To toggle (show/hide) an HTML element with a button click you need to do one simple trick in the onclick handler of that button. Let me show you how it’s done. ...

December 30, 2021 · 2 min · Coderslang Master

HTML Vertical Line

You can add a vertical line to your HTML page by using the <div> tag with custom CSS styling. Let’s dive into the details. ...

December 29, 2021 · 1 min · Coderslang Master

Disable any Button with JavaScript

You can disable any HTML button with JavaScript, by setting its disabled property to true. Let’s see how you can locate a specific button and prevent clicks by disabling it. ...

December 28, 2021 · 1 min · Coderslang Master

How to Create a Confirmation Modal with "yes" and "no" options in JS

A JavaScript confirm function is a convenient way to display the confirmation box with the “OK” and “Cancel” options and capture user’s response. Let’s see how it’s done. ...

December 27, 2021 · 1 min · Coderslang Master

How to add a line break in HTML

You can add a line break in HTML using the <br> tag. It works in all browsers. The <br> tag is a so-called “empty tag”, which means it doesn’t need a closing tag....

December 26, 2021 · 1 min · Coderslang Master

Redirect to another page with JavaScript

If you want to redirect to another page with JavaScript, you can use the window.location object. This object is part of the window global object and has a property called href....

November 6, 2022 · 2 min · Coderslang Master

What does HTML stand for

HTML stands for HyperText Markup Language. It is a programming language for creating the structure and the contents of the website. Every website you visit including this one which you are reading right now is built with the help of HTML....

December 6, 2021 · 2 min · Coderslang Master

Which HTML tag is used to define an internal style sheet

The style tag is used to define an internal style sheet in an HTML file. It is the HTML element that adds CSS stylings directly into the HTML file. Inside the style tag, you can write CSS code as if you were in a CSS file....

December 3, 2021 · 2 min · Coderslang Master

How to change the color while hovering in CSS

To change the color when hovering in CSS, you will use the CSS selector called :hover. The :hover is a CSS pseudo-class that will select the HTML element when the user hovers over with the mouse....

December 2, 2021 · 2 min · Coderslang Master

How to edit an HTML file

If you want to edit an HTML file, you are going to need a special tool called IDE. An Integrated development environment (IDE) is a computer application tool used for writing and editing code....

December 1, 2021 · 2 min · Coderslang Master