Skip to content

<a href="#"> is valid markup for Back to top link #520

Description

@merwok

Hello,

This markup is used in different cases:

  • links that are really buttons handled with javascript, which should not use a or not use href=#
  • bona fide back to top links; decades ago we used to use #top (with a custom ID on body or worse <a name="top">), but browsers standardized # to mean top of page.

I think the warning is too strong when there is a valid and widely used use case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions