### Install XP.css via npm Source: https://botoxparty.github.io/XP.css/index Use npm to install the XP.css package into your project. This command adds `xp.css` to your `node_modules` directory, making it available for bundling with modern JavaScript build tools like Webpack or Rollup. ```npm npm install xp.css ``` -------------------------------- ### Import XP.css Theme via CDN Source: https://botoxparty.github.io/XP.css/index To quickly integrate the Windows XP theme, include this tag in your HTML document's section. This fetches the stylesheet directly from unpkg, applying the XP.css styles to your page without local installation. ```HTML ``` -------------------------------- ### HTML for a Windows XP-style Window with Body Content Source: https://botoxparty.github.io/XP.css/index Building upon the basic window structure, this example illustrates how to incorporate a content area within the window. The `window-body` class is used to define the main content region, where elements like paragraphs can be placed, demonstrating how to fill the window with arbitrary content. ```html
A Window With Stuff In It

There's so much room for activities!

``` -------------------------------- ### Determinate Progress Bar HTML Example Source: https://botoxparty.github.io/XP.css/index Demonstrates a determinate progress bar using the `` HTML element with `max` and `value` attributes to show 70% completion. The `max` attribute defines the total work, and `value` indicates the completed portion. ```html ``` -------------------------------- ### Import 98.css Theme via CDN Source: https://botoxparty.github.io/XP.css/index To quickly integrate the Windows 98 theme, include this tag in your HTML document's section. This fetches the specific 98.css stylesheet from unpkg, applying the 98.css styles to your page without local installation. ```HTML ``` -------------------------------- ### Simulate a Focused HTML Button Source: https://botoxparty.github.io/XP.css/index This example illustrates a button in a simulated focused state. XP.css indicates focus with a dotted border positioned 4px inside the button's content, enhancing keyboard navigation accessibility and user experience. ```HTML ``` -------------------------------- ### HTML for a Windows XP-style Window with Tabs and Fieldsets Source: https://botoxparty.github.io/XP.css/index This advanced example demonstrates how to construct a Windows XP-style window featuring interactive tabs and grouped form elements (fieldsets). It utilizes `menu` with `role="tablist"` for tab navigation and `article` with `role="tabpanel"` for tab content, showcasing a more complex UI layout with radio buttons and buttons within a fieldset. ```html
A Window With Tabs and Groups

Set your listening preferences

Today's mood
``` -------------------------------- ### Create Accessible HTML Tabs with ARIA Roles Source: https://botoxparty.github.io/XP.css/index This snippet provides the foundational HTML structure for a tabbed interface, emphasizing accessibility through ARIA roles. It uses a `menu` with `role="tablist"` for the tab navigation, `button` elements with `role="tab"` and `aria-controls` for individual tabs, and `article` elements with `role="tabpanel"` for the corresponding content panels. The `aria-selected` attribute indicates the currently active tab. ```HTML

Tab Content

You create the tabs, you would use a menu role="tablist" element then for the tab titles you use a button with the aria-controls parameter set to match the relative role="tabpanel"'s element.

Read more at MDN Web docs - ARIA: tab role

``` -------------------------------- ### Implement Basic HTML Radio Buttons with Grouping Source: https://botoxparty.github.io/XP.css/index This snippet demonstrates how to create a group of mutually exclusive radio buttons using the `input type="radio"` element. Radio buttons are grouped by assigning them the same `name` attribute. Each input is wrapped in a `div` with the `field-row` class for consistent spacing and styling. ```HTML
``` -------------------------------- ### Set Default Selected Option in HTML Dropdown Source: https://botoxparty.github.io/XP.css/index Illustrates how to pre-select a specific option in an HTML dropdown list by applying the `selected` attribute to one of the `