Web Development Articles

Page 342 of 801

Usage of text-transform property in CSS

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 182 Views

The text-transform property in CSS is used to control the capitalization of text content. It allows you to transform text to uppercase, lowercase, capitalize first letters, or leave it unchanged. Syntax text-transform: value; Property Values Value Description none No transformation (default) capitalize Capitalizes the first letter of each word uppercase Converts all text to uppercase lowercase Converts all text to lowercase Example Text Transform Example ...

Read More

How to print object array in JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 21K+ Views

In this tutorial, we will learn how to print object arrays in JavaScript. An array of objects is a collection that stores multiple objects with similar structure in a single variable. Each object can contain multiple properties, making it useful for storing complex data like user information, product details, or any structured data. Let's explore different methods to print arrays of objects in JavaScript. Using JSON.stringify() Method The JSON.stringify() method converts JavaScript objects into JSON strings, making it perfect for displaying arrays of objects in a readable format. Syntax JSON.stringify(value, replacer, space) ...

Read More

Why in JavaScript, "if ('0' == false)" is equal to false whereas it gives true in "if(0)" statement?

mkotla
mkotla
Updated on 15-Mar-2026 2K+ Views

JavaScript's comparison behavior can be confusing when mixing different data types. Let's examine why '0' == false returns true while if(0) evaluates to false. Understanding '0' == false When using the loose equality operator ==, JavaScript performs type coercion following specific rules: console.log('0' == false); // true console.log(typeof '0'); // "string" console.log(typeof false); // "boolean" true string boolean The comparison follows this rule: If Type(y) is Boolean, return the result of the comparison x == ToNumber(y) Here's what happens step by step: ...

Read More

Example of embedded CSS

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 7K+ Views

Embedded CSS allows you to place CSS rules directly within an HTML document using the element. This tag is placed inside the section, and the rules defined will apply to all elements in the document. Syntax /* CSS rules go here */ selector { property: value; } ...

Read More

How to print a triangle formed of '#' using JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 4K+ Views

In this tutorial, we will learn to print a triangle formed of '#' using JavaScript. You need to use nested loops to print a triangle formed of '#' in JavaScript. The outer loop controls the number of rows, while the inner loop controls how many '#' symbols to print in each row. Nested loops are loops that contain another loop inside them. We'll explore two approaches using different types of loops in JavaScript: for loop while loop Using for Loop to Print a Triangle The for loop ...

Read More

Working with element for CSS

Samual Sam
Samual Sam
Updated on 15-Mar-2026 76 Views

You can put your CSS rules into an HTML document using the element. This tag is placed inside ... tags. Rules defined using this syntax will be applied to all the elements available in the document. Syntax /* CSS rules go here */ selector { property: value; } Example Following is an example of embedded CSS ...

Read More

How exactly does work?

Samual Sam
Samual Sam
Updated on 15-Mar-2026 327 Views

The defer attribute tells the browser to download the script while parsing HTML but delay execution until the DOM is fully built. It only works with external scripts and maintains execution order. How defer Works HTML Parsing Script Download Script Execution 1. HTML parsing continues while script downloads 2. Script waits until DOM is complete 3. Scripts execute in document order ...

Read More

How to use style attribute to define style rules?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 385 Views

The style attribute allows you to apply CSS rules directly to individual HTML elements. This is called inline CSS and provides element-specific styling with the highest specificity. Syntax Content Example: Basic Inline Styling Inline CSS Example This is inline CSS Styled div with multiple properties Example: Multiple Style Properties ...

Read More

How to Validate your Website Code?

Rahul Sharma
Rahul Sharma
Updated on 15-Mar-2026 364 Views

Website development involves writing code in HTML, CSS, JavaScript and your chosen platform. Your website may look correct and responsive, but it could have internal validation issues that affect SEO, accessibility, and browser compatibility. The W3C (World Wide Web Consortium) provides several free tools to validate your website code and ensure it meets web standards. HTML5 Validation Validator.nu is the recommended validator for modern HTML5 documents. It also validates ARIA, SVG 1.1, and MathML 2.0. This tool checks your complete document and identifies where the markup doesn't follow the specified doctype. ...

Read More

What is the difference between an acronym and abbr tags?

mkotla
mkotla
Updated on 15-Mar-2026 830 Views

In HTML, both acronym and abbreviation tags are used to mark shortened forms of words or phrases, but they have key differences in support and usage. An acronym is a word formed by taking the first letters of each word in a phrase (like "NASA" from "National Aeronautics and Space Administration"). An abbreviation is any shortened form of a word or phrase (like "Mr." for "Mister"). The Acronym Tag (Deprecated) The tag was used in older HTML versions to mark acronyms specifically. However, it is deprecated in HTML5 and should not be used in modern web ...

Read More
Showing 3411–3420 of 8,010 articles
« Prev 1 340 341 342 343 344 801 Next »
Advertisements