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

How to change font color in HTML

If you want to change the color of your HTML font, there are a couple of different ways that you can do it. One way is to use the “color” attribute in the opening tag for the element that you want to change....

November 20, 2022 · 1 min · Coderslang Master

How to center an image in HTML

Centering an image in HTML is a little harder than centering text as there’s no single CSS property that you could use to make sure your image appears at the center of the web page....

August 22, 2022 · 1 min · Coderslang Master

How to center text in HTML

Before HTML5 there used to be a <center> tag that allowed you to center text on your web page. Now it’s deprecated. If you need to center the text on your HTML page, you should use the CSS property text-align....

August 15, 2022 · 1 min · Coderslang Master

How to use BEM naming convention with SCSS

This article is for the intermediate level. This article explains the importance of writing better CSS class names with code snippets using SCSS. This article is targeted for the group of people who are interested to learn about BEM naming convention and want simple and descriptive explanation to what block, element and modifiers in BEM are....

July 16, 2022 · 6 min · Coderslang Master

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

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

Why is my CSS not working

Did you have a problem that your CSS is not working? No matter how many changes you make - big or small - it just doesn’t work at all? In that case, some underlying problem prevents you from applying CSS to your web page....

November 29, 2021 · 3 min · Coderslang Master

How to Open a Link in a New Tab in HTML

Did you notice on some websites where when you click a link — it will open a page in a new tab? And you want to know how to do this trick....

September 22, 2021 · 2 min · Coderslang Master