# html-styles

> Default HTML styles as defined by W3C specification

Latest version **1.0.0** (published 2018-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-styles
pnpm add html-styles
yarn add html-styles
bun add html-styles
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-01-02 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mario Nebl |
| Maintainers | marionebl |
| Keywords | css, html, styles, spec |

## Links

- npm: https://www.npmjs.com/package/html-styles
- Repository: https://github.com/marionebl/default-styles
- Homepage: https://github.com/marionebl/default-styles#readme
- Issues: https://github.com/marionebl/default-styles/issues
- npm.io page: https://npm.io/package/html-styles

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-01-02

## README

> Default HTML styles as defined by [W3C specification](https://www.w3.org/TR/html5/rendering.html)

# html-styles

```
npm install html-styles
```

## Usage

```js
const defaultStyles = require('html-styles');
const applicable = styles.filter(({selectorText}) => document.body.matches(selectorText));

// [
//   { selectorText: "html, body", type: "CSSStyleRule", style: {…}},
//   { selectorText: "address, blockquote, center, div, figure, figcaption, footer, form, header, hr,\nlegend, listing, main, p, plaintext, pre, summary, xmp, article, aside, h1, h2,\nh3, h4, h5, h6, hgroup, nav, section, table, caption, colgroup, col, thead,\ntbody, tfoot, tr, td, th, dir, dd, dl, dt, ol, ul, li, [dir=ltr i],\n[dir=rtl i], [dir=auto i], *|*", type: "CSSStyleRule", style: {…} }
// ]
```

## Scrapeing

```
yarn install
yarn scrape
```

## License

`html-styles` is released under the MIT license.

---
_Source: https://npm.io/package/html-styles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
