For smart Primates & ROBOTS (oh and ALIENS ).

Sunday, March 10, 2024

Multiple attribute passing in querySelectorAll

Multiple attribute passing in querySelectorAll  Here I am demonstrating code to how to pass multiple attributes in querySelectorAll.<!DOCTYPE html><html lang="en"><head><title>Multiple attribute passing in querySelectorAll</title><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge"...
Share:

How to make load image fast

How to make load image fastImages are main parts of any website, Because It says lots of things than text. So it is important to load it fast as much as fast.To load image fast use below attributes<link rel="preload" as="image" href="https://site.com/imgs/image.jpg"><img fetchpriority="high" decoding="async" src="https://site.com/imgs/image.jpg"...
Share:

Enable or Disable files folder structure in website domain

 Enable or Disable files folder structure in website domainSometime when you type the url or website domain then files and folder structure show. This is normally for the test servers with no security.Sometime it is useful for testing of different pages and folder etc, because all files and folder show and user can test any files etc. But if you...
Share:

Apply CSS via JavaScript

 Here is the example where apply css via JavaScript<script>const mstyle = document.head.appendChild(document.createElement(‘style’));style.textContent = /*this is the css*/`.myclass {aspect-ratio: 16 / 9; background-color: #000;position: relative; display: block; contain: content;background-position: center center;background-size: cover;}#mydivid...
Share:

Ads Inside Post

Powered by Blogger.

Archive