Web Developer Notes - Page 5
Image Scaling Problem in Outlook
Last updated: 09.04.2026
Views: 333
Creating HTML email layouts is a fairly complex and not always enjoyable process. This is mainly due to the fact that many email clients do not support modern web standards. In addition, there is a huge number of different email clients and services.
When I was composing HTML emails, I encountered the fact that in desktop Outlook (it turns out that someone else uses it) the images were displaye...
Protecting a Website or Directory with a Password Using .htaccess and .htpasswd
Last updated: 26.10.2025
Views: 384
Securing a website or a specific directory with a password is a simple yet effective way to restrict access. This can be done using .htaccess and .htpasswd files in Apache. The .htaccess file controls access, while the .htpasswd file stores the usernames and hashed passwords.
Video Instruction
The video instructions show a slightly different setup option.
Creating the .htpasswd File
The ...
How to Make Asynchronous Requests in a Loop in JavaScript
Last updated: 10.10.2025
Views: 318
Implementing asynchronous requests inside a JavaScript loop may not seem obvious at first. When making asynchronous requests inside a JavaScript loop, it is important to handle them correctly. This can be done in different ways. In this post, we will look at 2 ways.
Parallel Requests with Promise.all() (Fastest)
If the requests are independent and can be executed in parallel, use Promise.all(). ...
Infinite Rotation with CSS Animation
Last updated: 07.04.2026
Views: 318
One simple yet effective technique is creating an infinitely rotating element. This kind of animation can be used to attract attention to specific parts of a page, such as icons, loaders, or interactive elements. It is often used in UI design to indicate ongoing processes or to add a subtle dynamic touch to otherwise static content.
Implementing continuous rotation with CSS is quite straightfor...
How to Detect the Operating System (OS) Using JavaScript
Last updated: 02.04.2026
Views: 367
Sometimes it is necessary to detect the user’s operating system when building web applications or websites. This can be useful for applying different CSS styles, collecting analytics data, or adapting certain features depending on the user’s environment. While there are many libraries and plugins available for OS detection, in simple cases it is вполне possible to implement this functionality with...