Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Styling different states of a link using CSS
Using CSS pseudo-classes, namely :active, :hover, :link and :visited, we can style different states of a link. For proper functionality, the order of these selectors should be: :link, :visited, :hover, :active. Syntax a:pseudo-selector { /* CSS properties */ } Link Pseudo-Classes The following are the key pseudo-classes for styling links − :link − To select unvisited links :visited − To select all visited links :hover − To select links on mouse over :active − To select the active link (when clicked) Example: Basic Link States ...
Read MoreExplain linear data structure queue in C language
A queue is a linear data structure that follows the First In First Out (FIFO) principle. In a queue, elements are inserted at the rear end and deleted from the front end, similar to a real-world queue where the first person to join the line is the first to be served. 10 20 30 40 FRONT REAR DELETE ...
Read MoreMeaning and Characteristics of Index Numbers
Index numbers are statistical tools used to measure the relative change in a variable or group of variables over time. They express changes as percentages, with a base period assigned a value of 100, making comparisons across different time periods simple and meaningful. Formula The basic formula for calculating an index number is: $$\mathrm{Index\ Number = \frac{Value\ in\ Current\ Period}{Value\ in\ Base\ Period} \times 100}$$ Value in Current Period − The value of the variable in the period being compared Value in Base Period − The value of the variable in ...
Read MoreThe width and height properties in CSS
The CSS width and height properties define the dimensions of an element's content area, excluding margins, padding, and borders. These fundamental properties give you precise control over element sizing. Syntax selector { width: value; height: value; } Possible Values ValueDescription autoBrowser calculates dimensions automatically (default) lengthFixed size in px, em, rem, etc. %Percentage of parent element's dimensions initialSets to default value inheritInherits from parent element Example: Fixed Dimensions The following example demonstrates setting specific width and height values − ...
Read MoreSetting Line Height in CSS
The CSS line-height property is used to control the vertical spacing between lines of text within an element. It defines the minimum height of line boxes and accepts only positive values. Syntax selector { line-height: value; } Possible Values ValueDescription normalDefault value, typically 1.2 times the font size numberA number that multiplies the current font size lengthFixed line height in px, em, rem, etc. %Percentage of the current font size Example 1: Using Percentage Values This example demonstrates different line heights using percentage and pixel values ...
Read MoreCore Elements and Goals of Sustainable Development
Sustainable development is a development approach that meets the needs of the present without compromising the ability of future generations to meet their own needs. It balances economic growth, environmental protection, and social equity to create long-term prosperity. This concept gained international prominence after the World Commission on Environment and Development published "Our Common Future" in 1987. Core Elements of Sustainability Sustainable development rests on three interconnected pillars that must work together to achieve lasting success: Economic Progress Environmental Conservation Social Well-being Continued economic growth and poverty reduction Protection of natural resources and ...
Read MoreExplain C Error handling functions
In C programming, error handling functions are essential for managing errors that occur during file operations. These functions help detect and report errors when reading from or writing to files, ensuring robust and reliable programs. Syntax int ferror(FILE *stream); void perror(const char *s); int feof(FILE *stream); Common File Operation Errors Some common errors in file operations include − Trying to read beyond the end of file Device overflow Trying to open an invalid file Performing invalid operations (e.g., writing to a read-only file) ferror() Function The ferror() function is ...
Read MoreUnderstanding the difference between CSS Border and Outline
The CSS border and outline properties are both used to add visual boundaries around elements, but they behave very differently. Understanding their key differences will help you choose the right property for your styling needs. Syntax selector { border: width style color; outline: width style color; } Key Differences FeatureBorderOutline Takes up spaceYes, affects element dimensionsNo, drawn outside the element Individual sidesCan style each side separatelyApplied to all sides at once Border radiusSupports rounded cornersDoes not follow border radius Offset supportNoYes, with outline-offset ...
Read MoreExplain putc() and getc() functions of files in C language
The putc() and getc() functions in C are used for character-based file input/output operations. These functions allow you to read and write single characters to files, making them useful for processing text files character by character. Syntax int putc(int ch, FILE *fp); int getc(FILE *fp); The putc() Function The putc() function writes a character to a file. It takes two parameters − the character to write and a file pointer. It returns the written character on success or EOF on failure. The getc() Function The getc() function reads a character from a ...
Read MorePoor: Meaning and its Categories
Poverty is a social, economic, and political situation where people face scarcity of essential resources such as money, food, shelter, and basic services. It is a debilitating condition affecting both individuals and entire economies, often leading to malnutrition, healthcare problems, and social instability. The term poverty derives from the French word 'poverte' which means poor. Key Concepts Poverty represents a complex socioeconomic phenomenon that manifests differently across various contexts and communities. Understanding poverty requires examining both its absolute dimensions (basic survival needs) and relative aspects (inequality within societies). Street cobblers, rag pickers, push-cart vendors, beggars, ...
Read More