馃殌 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鈥檚 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鈥檚 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鈥檚 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 鈥淥K鈥 and 鈥淐ancel鈥 options and capture user鈥檚 response. Let鈥檚 see how it鈥檚 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 鈥渆mpty tag鈥, which means it doesn鈥檛 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