Q61. What is the :visited pseudo-class used for in CSS?
The **`:visited`** pseudo-class styles anchor links (``) that the user has already navigated to in their browser history: ```css a:visited { color: #7c3aed; /* Purple ind...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (106 available).
The **`:visited`** pseudo-class styles anchor links (``) that the user has already navigated to in their browser history: ```css a:visited { color: #7c3aed; /* Purple ind...
You target the initial character of a block-level text element using the **`::first-letter`** pseudo-element, commonly used to create decorative editorial **drop caps**: ...
The **`:active`** pseudo-class represents an element in the process of being activated by the user. ### When Is It Triggered? - The moment a user presses and holds the pr...
The lang() pseudo-class is used to target elements based on the language attribute of the HTML document. For example, you can use :lang(en) to target all elements in Engl...
The :checked pseudo-class is used to target form elements that have been selected by the user, such as checkboxes or radio buttons. This can be used to change the appeara...
The @media rule in CSS allows developers to apply styles to a web page based on the size of the device or screen being used to view it, making it more responsive.
A fluid layout in CSS adjusts its width and height based on the size of the screen, while a fixed layout has a set width and height. Fluid layouts use percentages to set ...
To make images responsive in CSS, you can use the max-width: 100% property, which will make the image scale down proportionally to fit the width of its container while ma...
In CSS media queries, min-width sets the minimum screen width at which a set of styles will be applied, while max-width sets the maximum screen width at which a set of st...
Responsive design in CSS adapts to different screen sizes and devices by using flexible grids, fluid images, and media queries to adjust the layout and content of the web...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.