Skip to content

Use name= instead of id= #33

Description

@jooize

Stumbled upon this while creating a document. Make of it what you will.

<h3 id="nubits-official-wallet-nu">NuBits Official Wallet (Nu)</h3>

— https://docs.nubits.com/

Use a name. Using an ID isn't necessary in HTML 5 and will create global variables in your JavaScript

Many libraries (i.e., not your own JS, but someone else's) use a single global - for example, fineuploader. If you make an element with an ID of fineuploader, you will be unable to use the fineuploader module. Avoiding creating unnecessary globals helps avoid those conflicts.

— https://stackoverflow.com/questions/5319754/cross-reference-named-anchor-in-markdown/17028463#17028463

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions