Add hyperlink to HTML standards for data- prefix (#2072)

Fixes #2071
This commit is contained in:
Thad Guidry 2023-12-08 00:59:58 +08:00 committed by GitHub
parent 255cb9be7b
commit 9de3c3f068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ within the [original web programming model](https://www.ics.uci.edu/~fielding/pu
using [Hypertext As The Engine Of Application State](https://en.wikipedia.org/wiki/HATEOAS)
without even needing to really understand that concept.
It's worth mentioning that, if you prefer, you can use the `data-` prefix when using htmx:
It's worth mentioning that, if you prefer, you can use the [`data-`](https://html.spec.whatwg.org/multipage/dom.html#attr-data-*) prefix when using htmx:
```html
<a data-hx-post="/click">Click Me!</a>