CSS Container Queries
Implement responsive components using CSS container queries that adapt based on parent container width not viewport.
Page 50 of 50
Implement responsive components using CSS container queries that adapt based on parent container width not viewport.
Style scrollbars using CSS scrollbar-width and webkit pseudo-elements for consistent cross-browser visual design.
Style accessible focus indicators using CSS focus-visible to show outlines only for keyboard navigation not mouse.
Build complex gradient backgrounds with linear and radial gradients for modern visual design without images.
Control CSS specificity using cascade layers to organize stylesheets and prevent specificity wars in large projects.
Support bidirectional text layouts using CSS logical properties like margin-inline and padding-block for internationalization.
Use native CSS nesting to organize selectors hierarchically without preprocessor dependencies for cleaner stylesheets.
Control how images and video fill containers using CSS object-fit and object-position for responsive media display.
Optimize web pages for printing using CSS print media queries with page breaks and display adjustments for paper output.
Create decorative elements using CSS pseudo-elements with content and positioning for tooltips badges and icons.
Create scroll-snap carousels and galleries using CSS scroll-snap properties for touch-friendly mobile interactions.
Align nested grid items to parent grid using CSS subgrid for consistent column alignment across complex layouts.
Control text wrapping and overflow with CSS line-clamp text-wrap balance and overflow properties for content layout.
Apply CSS transitions with custom cubic-bezier timing functions for natural motion and interactive feedback.
Define design tokens using CSS custom properties with fallback values and runtime theme switching capability.
Center elements horizontally and vertically using flexbox with justify-content and align-items properties.
Demonstrates CSS Flexbox for one-dimensional layouts including centering, space distribution, wrapping, and responsive navigation patterns.
Creates two-dimensional layouts with CSS Grid including template areas, responsive tracks, and auto-fit grids for complex page structures.
Build a responsive grid layout system using CSS Grid with auto-fit and minmax for flexible column counts.
Implement mobile-first responsive breakpoints using media queries with min-width for progressive enhancement.
Use CSS sticky positioning to create headers that stay visible during scroll without JavaScript scroll listeners.
Uses CSS transform functions for 2D and 3D transformations including translate, rotate, scale, skew, and perspective for visual effects.
Applies CSS transitions to create smooth property changes on hover, focus, and state toggles with custom timing and easing functions.
Implements accessible web components using ARIA attributes, proper roles, keyboard navigation support, and screen reader announcements.
Uses ARIA live regions to announce dynamic content changes to screen readers, supporting polite and assertive announcement modes.
Structures a blog article with semantic elements including header, time, figure, blockquote, and proper heading hierarchy for content rich pages.
Defines a custom HTML element with lifecycle callbacks, observed attributes, and Shadow DOM encapsulation for reusable component creation.
Uses data attributes to store custom data in HTML elements, accessed via JavaScript dataset API for configuration and state management.
Creates an accessible data table with proper scope attributes, captions, column groups, and responsive design for tabular data presentation.
Uses native details and summary elements to create accessible expandable content sections without JavaScript, with custom styling.
Uses the HTML dialog element to create modal and non-modal dialogs with built-in focus management, backdrop, and JavaScript API.
Uses figure and figcaption elements to associate media content with captions, supporting images, code blocks, and quoted content.
Creates accessible HTML forms with various input types, built-in validation attributes, proper labeling, and user-friendly error messaging.
Implements native lazy loading for images and iframes using the loading attribute, with Intersection Observer fallback for older browsers.
Showcases all HTML5 input types with appropriate attributes for data collection, validation, and enhanced user experience across different devices.
Uses the mark element to highlight relevant text portions, such as search results or important terms, with semantic meaning and styling.
Demonstrates essential meta tags for SEO, Open Graph, Twitter Cards, and mobile optimization including viewport and charset declarations.
Creates visual gauge indicators using the meter element with color-coded thresholds for displaying system metrics and measurement ranges.
Creates a semantic navigation menu with proper ARIA attributes, keyboard navigation, current page indication, and responsive hamburger toggle.
Uses the picture element with multiple sources to serve different images based on viewport size, format support, and pixel density.
Uses native progress and meter elements to display completion status and scalar measurements with proper accessibility attributes.
Uses srcset and sizes attributes to serve appropriately sized images based on viewport, plus art direction with the picture element.
Uses ruby, rt, and rp elements to add pronunciation guides and annotations above East Asian characters, with fallback support.
Creates a content layout using section and aside elements with proper heading hierarchy for main content and complementary sidebar information.
Demonstrates semantic HTML5 elements for structuring content meaningfully, improving accessibility and SEO with proper document outline.
Uses slot elements with named and default slots to create flexible web component templates that accept distributed content from the parent.
Adds structured data using JSON-LD format for Schema.org markup to help search engines understand page content and enable rich results.
Uses the template element to define reusable HTML fragments that can be cloned and inserted into the DOM without rendering until activated.
Uses the time element with datetime attribute to represent dates and times in a machine-readable format for scheduling and display.
Demonstrates common ArrayList operations including add, remove, iterate, sort, and filter with practical examples for managing a list of items.
Uses CompletableFuture to compose asynchronous operations with thenApply, thenCompose, thenCombine, and exception handling for non-blocking pipelines.
Defines custom annotations with different retention policies and demonstrates runtime annotation processing via reflection for metadata-driven behavior.
Defines a custom exception hierarchy with domain-specific exceptions, demonstrating proper exception chaining, message formatting, and multi-catch handling.
Uses the java.time API to work with dates, times, durations, periods, and formatting, demonstrating modern date-time manipulation and parsing.
Uses ScheduledExecutorService to run delayed and periodic tasks, demonstrating fixed-rate and fixed-delay scheduling with proper shutdown handling.
Demonstrates reading and writing files using Java NIO with Path, Files, and BufferedReader, including proper resource management and exception handling.
Implements a generic Box class with type bounds, demonstrating how generics provide compile-time type safety while working with constrained type parameters.
Demonstrates HashMap operations including put, get, merge, computeIfAbsent, and iteration with entrySet, keySet, and forEach methods.
Demonstrates connecting to a database using JDBC, executing parameterized queries with PreparedStatement, and processing ResultSet with proper resource cleanup.
Demonstrates lambda expressions with built-in functional interfaces like Predicate, Function, Consumer, and Supplier for concise and readable code.
Demonstrates LinkedList operations including addFirst, addLast, peek, poll, and bidirectional iteration with ListIterator for queue and deque patterns.
Demonstrates four types of method references (static, instance, arbitrary object, constructor) to create concise and readable functional expressions.
Demonstrates serializing and deserializing objects to JSON format, showing how to persist and transfer structured data between application components.
Demonstrates using Optional to handle potentially absent values safely, with map, flatMap, filter, orElse, and ifPresent operations to avoid NullPointerExcep...
Uses Java pattern matching with switch expressions and type patterns to handle different object types concisely without explicit casts or instanceof checks.
Demonstrates Java record classes as concise immutable data carriers with automatic constructors, accessors, equals, hashCode, and toString methods.
Uses Pattern and Matcher classes to validate email addresses, extract groups, replace text, and split strings with regular expressions.
Demonstrates sealed classes and interfaces to create restricted class hierarchies, enabling exhaustive pattern matching and domain modeling with known subtypes.
Demonstrates advanced Stream collectors including groupingBy, partitioningBy, counting, joining, and teeing for complex data aggregation and transformation.
Shows how to process collections using Java Streams with map, filter, reduce, and collect operations to transform and aggregate data efficiently.
Demonstrates efficient string manipulation using StringBuilder for concatenation, insertion, deletion, and reversal operations in performance-critical code.
Demonstrates Java text blocks for multi-line string literals with proper indentation handling, template formatting, and SQL/JSON/HTML generation.
Creates a fixed thread pool to execute multiple tasks concurrently, demonstrating proper resource management with try-with-resources and shutdown handling.
Demonstrates try-with-resources with custom AutoCloseable objects, ensuring proper resource cleanup even when exceptions occur during resource usage.
Uses GROUP BY ROLLUP and GROUPING to generate hierarchical summary rows with subtotals and grand totals for multi-dimensional analysis.
Uses CASE expressions in SELECT, ORDER BY, and aggregate contexts to implement conditional logic, categorization, and dynamic sorting in queries.
Uses COALESCE, NULLIF, NVL, and GREATEST/LEAST to handle NULL values gracefully in calculations, display formatting, and conditional logic.
Uses Common Table Expressions (CTEs) to break complex queries into named, readable steps for multi-level data transformation and aggregation.
Creates various index types including B-tree, partial, expression, and composite indexes to optimize different query patterns and access paths.
Creates simple and materialized views to abstract complex queries, pre-compute expensive aggregations, and provide simplified data access patterns.
Uses DELETE with subquery conditions to remove specific rows and RETURNING to capture deleted data for audit logging and referential cleanup.
Uses DISTINCT and DISTINCT ON to eliminate duplicate rows and select unique rows based on specific column ordering for data deduplication.
Demonstrates complex WHERE clause filtering with multiple operators including BETWEEN, IN, LIKE, IS NULL, and boolean logic for precise data selection.
Uses GROUP BY with multiple aggregate functions to summarize sales data by category, including count, sum, average, min, and max calculations.
Uses HAVING clause to filter grouped results based on aggregate conditions, combined with WHERE for pre-aggregation row filtering.
Performs INNER JOINs across three tables to combine related data from customers, orders, and products with proper table aliasing and filtering.
Demonstrates INSERT statements with multiple rows, column lists, and ON CONFLICT upsert behavior for inserting or updating data atomically.
Queries and manipulates JSON/JSONB data using operators for extraction, filtering, and modification of nested JSON structures in PostgreSQL.
Uses the MERGE statement to perform conditional INSERT, UPDATE, or DELETE operations based on source-target matching for data synchronization.
Demonstrates ORDER BY with multiple columns, mixed sort directions, NULLS handling, and expression-based sorting for precise result ordering.
Implements keyset pagination using LIMIT and OFFSET for efficient page-by-page result retrieval, with a fallback to cursor-based pagination for large datasets.
Uses a recursive Common Table Expression to traverse hierarchical data structures like org charts, category trees, or bill of materials.
Demonstrates a basic SELECT query with column aliases, literal expressions, and calculated columns for retrieving and shaping data from a table.
Creates a stored procedure with parameter validation, error handling, dynamic SQL, and cursor operations for encapsulating complex business logic.
Demonstrates correlated and non-correlated subqueries in WHERE clauses and SELECT columns to filter and enrich data based on related query results.
Defines a table with comprehensive constraints including primary key, foreign keys, check constraints, unique constraints, and default values.
Demonstrates explicit transaction control with SET TRANSACTION isolation levels, savepoints, and conditional rollback for safe multi-step operations.
Combines result sets using UNION ALL, UNION, INTERSECT, and EXCEPT operators to merge, find common, or find differing rows between queries.
Performs UPDATE with a FROM clause to join additional tables and uses RETURNING to retrieve modified rows for verification and auditing.
Uses window functions like ROW_NUMBER, RANK, LAG, LEAD, and running totals to perform advanced analytics without collapsing result rows.