xz / xz/new.css

HTML validation - Incorrect wrap of button

Open
#42 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
4.1k
Forks
127
PR merge metrics
No merged PRs in 30d

Description

From the demo page: https://newcss.net/usage/elements/

The instructions for a link button:

Click me!

A "button" can't be wrapped in an anchor element.
This use doesn't pass HTML validators.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the demo page at https://newcss.net/usage/elements/ and inspect the link-button example. Check the rendered markup with an HTML validator, then update the example so it passes validation while preserving the intended link-button behavior. Done means the demo no longer contains invalid button-and-anchor nesting.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.