Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8850777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:58:46+00:00 2026-06-14T12:58:46+00:00

In the past I’ve seen examples of anchors being specified using anchor elements, and

  • 0

In the past I’ve seen examples of anchors being specified using anchor elements, and id or name attributes (with id taking precedence).

However, is there any particular reason why I should use an anchor element over any other element, in terms of accessibility/cross-browser support?

For example I could a URL http://domain.com/page.htm#faq with the following markup:

<a id="faq"></a>
<h1>Frequently Asked Questions</h1>

Which could be simplified to:

<h1 id="faq">Frequently Asked Questions</h1>

Is there any harm in using this second markup? Is there a particular reason why developers would prefer empty anchors over attaching the id to a more relevant element?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:58:47+00:00Added an answer on June 14, 2026 at 12:58 pm

    is there any particular reason why I should use an anchor element over any other element, in terms of accessibility/cross-browser support?

    No, not any more.

    Historically (pre HTML 4), named anchors were the only way to have in page anchors.

    Is there any harm in using this second markup?

    That’s the recommended way – that’s how you should do it.

    Is there a particular reason why developers would prefer empty anchors over attaching the id to a more relevant element?

    Only lack of learning and adapting to change 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In past, I am using Listview and using below code can show a particular
In the past few years of using svn, I've frequently run into problems where
For past 7 months I have been designing web applications using open source technologies
In the past, I created my stores using Ext.create('Ext.data.Store', ... and when I wanted
The past few days I have done a lot of research using the DAL/BLL/UI
This past semester I was taking an OS practicum in C, in which the
Over the past several months I've seen quite a few unexpected bugs popping up
The past few sites I worked on and primarily event driven using jquery and
In the past I've never been a fan of using triggers on database tables.
For past projects(the last few have been web using asp.net mvc) we created a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.