Timer & Intervals

setTimeout

The only tying that one should note is whenever we use set timeout as it is present in the browser by default the reference will change hence we need to take care of the this refernce
setInterval

Search for a command to run...


The only tying that one should note is whenever we use set timeout as it is present in the browser by default the reference will change hence we need to take care of the this refernce

No comments yet. Be the first to comment.
Need for overlay When we have an image and when we place text over it the text will not be vsisble correcly to avoind this behaviour we use overlay Creating an overlay in CSS To create an overlay we use two pseudo element after and before Remembe...
🏷️ HTML Tags and Semantic Structure 🔹 What Are HTML Tags? HTML (HyperText Markup Language) uses tags to define the structure and meaning of content on a web page.Tags tell the browser what each piece of content is — a heading, paragraph, image, but...
🎭 CSS Pseudo-elements Explained 🔹 What Are Pseudo-elements? A pseudo-element lets you style specific parts of an element’s content — even parts that don’t exist in your HTML.They act like virtual child elements created by CSS. They start with a dou...
⚙️ calc() — Dynamic Width Formula 🔹 Syntax width: calc(<value> [operator] <value>); Operators:+, -, *, /(You must have spaces around the operator.) 💡 Common Use Cases 1️⃣ Subtracting Fixed Space (e.g., Sidebar or Padding) Suppose your page layout...
CSS : 🌊 The “C” in CSS: Cascade & Specificity **CSS** stands for **Cascading Style Sheets**. When multiple rules target the same element, the browser decides which one wins using **specificity** and **source order**. 🔸 Specificity hierarchy: - In...