JavaScript Cheat Sheet

JavaScript Cheat Sheet

Here’s a JavaScript Cheat Sheet that organizes core JavaScript concepts and methods in an easy-to-follow structure. This will help you quickly reference important JavaScript syntax and concepts while coding. JavaScript Cheat Sheet 1. Basic Syntax Concept Description Variables Used to store data. var Declares a variable (older, function-scoped). let Declares a block-scoped variable (modern, preferred). … Read more

L-67 CSS border-image Property

CSS border-image Property

CSS border-image Property The border-image property allows you to use an image as the border of an element, giving you creative control over how borders look beyond the usual solid, dashed, or dotted styles. It provides a unique way to add decorations, such as patterns or textures, to borders by slicing up an image and … Read more

L-66 CSS quotes Property

CSS quotes Property

CSS quotes Property The quotes property in CSS is used to define how quotation marks should appear when using the HTML <q> element. The <q> element is specifically designed for inline quotations, and the quotes property allows you to customize the opening and closing quotation marks used in different contexts or languages. Values of quotes … Read more

L-65 CSS box-decoration-break Property

CSS box-decoration-break Property

CSS box-decoration-break Property The box-decoration-break property controls how box decorations (like borders, backgrounds, padding, and shadows) are applied to elements that break across multiple lines or pages. Normally, when an element breaks, like a block of text that wraps onto a new line, the styling (borders, backgrounds, etc.) may be reapplied at the break, creating … Read more

L-64 CSS user-select Property

CSS user-select Property

The css user-select property controls whether a user can select text or content in an element. By default, users can highlight and copy text on a web page, but there are scenarios where you might want to disable or modify this ability, such as preventing users from copying proprietary content or making certain elements unselectable … Read more

L-63 CSS object-fit Property

CSS object-fit Property

The css object-fit property is used to define how the content of a replaced element (like <img>, <video>, or <iframe>) should fit inside its container. It helps in controlling how images or videos scale or crop to fit within their parent container’s dimensions. This property is useful in creating responsive layouts where images or media … Read more

L-61 CSS Animations

Generally, CSS animations are optimized by browsers and have less impact on performance than JavaScript-based animations. However, overly complex or too many animations can affect performance, especially on mobile devices.

CSS Animations bring web elements to life by allowing them to move, change colors, rotate, and more, over a defined period of time. With CSS animations, you can create smooth, engaging, and dynamic effects without relying on JavaScript. 1. What Is CSS Animation? CSS animations allow elements to gradually change from one style to another … Read more

L-58 CSS perspective

CSS perspective

CSS perspective is used to give a 3D element depth by creating the illusion of distance. It controls how far or close the viewer (camera) is from a 3D object, which affects how the object appears when transformed in 3D space. The larger the perspective value, the more subtle the 3D effect; the smaller the … Read more

L-57 CSS 3D Transforms

CSS 3D Transforms

CSS 3D Transforms allow you to manipulate elements in three dimensions—moving them along the x, y, and z-axes. This creates a more dynamic and immersive experience on your website, making elements appear to rotate, translate (move), or scale in a 3D space. 1. What Are CSS 3D Transforms? With 3D transforms, you add depth to … Read more