Reaching more and more people is a priority of a webpage and that includes people with disabilities and people who use screen readers to browse the webpage. It’s our job and responsibility to provide them the same information we all receive.

Besides ensuring information, it’s crucial to use well structured, readable, maintainable code. To fill that void, HTML accessibility comes into view. It ensures us that all people get the same content and information irrespecitve of their physical condition, age, race, and location. Today, we will cover this topic in broad.

Semantic HTML

Semantic means Correct interpretation of the meaning of a…

Do you want a fast website? Smooth website? Then you should care about WebP. It makes websites lighter and makes it faster. WebP combines the feature of PNG and JPEG. It is the new king of the image format.

What is WebP

This is an image format like PNG/JPG/GIF but it has more interesting features that make it more versatile. Actually, It was developed and released by Google.

Some of its main features are:

  1. It supports both Lossy and Lossless Compression. IF you don’t know what lossy or lossless mean, read my previous article
  2. WebP lossless images are 26% smaller in size compared…

Photo by Smart on Unsplash

We all are familiar with variables. But Sass Variable is magic like no other. It makes your web development fun and engaging. There are lots of ways to use Sass Variable. Let’s explore this.

Make your life easy

Look at this code,

p {
background-color: #445522;
letter-spacing: 2px;
h1 {
background-color: #445522;
letter-spacing: 2px;
color: black;
text-transform: uppercase;

I used the same background-color and letter-spacing in both p and h1 tags. But in a real project, you will write the same value in many different places. If you want to change a small thing like color, then you have to go to…

We use so many attributes such as id, class, title, etc. But we can create our attribute in HTML by the “data-” attribute. I will introduce you to the *data-* attribute.

What is Data Attribute?

“It is used to store your data(Custom data) in HTML Element which will be hidden from the user but visible to the developer.

Do I need to use this attribute?

Yeah. I am explaining why. Most of the time you will use it when you need to add extra information on an HTML element so that you can access/filter/delete/style the element. But you should use this only when there is no other appropriate HTML element available

How can I use this attribute?

In my previous post, I wrote about the HTML accesskey attribute. Now another HTML global attribute is “Contenteditable” which is a somewhat hidden attribute in HTML. Let’s dig into it.

What is ContentEditable

Contenteditable attribute is somewhat like HTML input,textarea tag. But what makes it different from others is that it can change the content of a tag directly like a text editor. Users don’t need to submit or save after editing/changing text. It will happen automatically. Didn’t understand? Its ok. Let’s learn by example. First, we create a HTML file with a p tag like this

Notice the attribute contenteditable. I set…

Color is the first impression of a website. Every color trigger certain feelings and color can increase brand value and experience. In this era of technology, people are visually driven. People make decisions about a brand within the first 90 seconds and their choice is 64–90% based on color.

So, choosing the right color lets you win the half battle. As we know, the first impression counts. Let’s start with simple syntax.** We usually write the color in CSS by this syntax:

css selector { color: color-name; }

But there is a lot to know beyond this syntax. As a…

Learn everything about Sass import with a mini project

Photo by Markus Spiske from Pexels

Unity is strength. It also goes with Sass. In CSS import, the browser sends separate HTTP requests for each CSS file which causes poor performance. But in Sass, all the files are concatenated into one file and only one request is sent to the server which improves performance.

You want to be Pro in Sass and CSS ?? Then, it’s mandatory to know how Sass @import works.

Let’s see What we will be learning today

  1. What is Sass @import?
  2. The necessity of Sass import
  3. Difference between CSS import and Sass import
  4. How to use Sass
  5. Sass partials
  6. Importing CSS file

Learn Everything About JavaScript Promise, How to Create a Promise, How a Promise Works, and All.

ES6 introduced Promise in JavaSCript which brought a new revolution in the way how we write asynchronous code. Previously we had to face Callback hell , but now with the help of Promise, writing asynchronous code became easier. Let’s dive into the topic.

What is previously used to achieve asynchronous tasks?

It’s a Callback hell. Don’t be confused to see “hell”. if you don’t know what callback is please read this article. But Callback creates a problem which is called “Callback hell”. Callback hell makes code complicated to read and debug. So, it wasn't sustainable. …

Learn Using Default Parameter in a smart and concise way

Photo by Sierra Dungan on Unsplash

All of you have used the JavaScript function before. Before going into the default parameter, I am going to recap what a is parameter and the argument in a function.

parameter: Parameters are those values that are given at the time of function declaration. In the code below, “a” and “b” are parameters.

argument: Argument is those values that are passed to the function in the time of function invocation. In the code below “c” and “d” are arguments.

Default Parameter: It’s a value that is used when no arguments are passed to its associated parameter. …

Spread and rest operator is one of the coolest features of ECMA6. Using these operators makes our code easy to read and also they are easy to use.

Spread Operator

Spread operator allows iterables(arrays, objects, and strings) to be expanded into single arguments. It’s denoted by three dots(…) followed by the variables or the array/string/object we want to unpack/expand. Let’s see how it works

Write the above code and run it in the console. In the first console, you will get an array as output. But in the second console, you will get only values without an array. Three dots (…)…

Md Shahab Uddin

Front-End Developer & Tech Writer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store