1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can I use a div as a button for SEO?

Discussion in 'Search Engine Optimization' started by FarrisFahad, Jul 27, 2023.

  1. #1
    I have a load more content button that runs on js and ajax. I don't know if this is going to effect my seo but I have the button as div and not button or input field.

    Will that make any difference?
     
    FarrisFahad, Jul 27, 2023 IP
  2. phoenixtropicals

    phoenixtropicals Active Member

    Messages:
    138
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    50
    #2
    This is a good question. While search bots can interact with page level javascript such as clicking div's formatted as buttons. It is still more reliable to use hyperlinks between pages. In fact I provide a sitemap to my website at the bottom on my homepage. Its a single page that has a link to every place in the website no matter how deep the page is buried. You can check it out here https://www.phoenixtropicals.com/siteMap.html The funny thing is that it is probably out of date because I have completely forgot about it until I saw your post. Ha ha. Thanks for the reminder. By using a sitemap you can create insurance that your whole site will get crawled but still preserve the look and feel of having buttons.

    By the way, if you are using something like React or Angular to render your site, you will definitely confuse the search bots. They still can't handle javascript rendering of html. The most I would consider them to reliable handle would be an inline onclick.

    Hope this helps. I know creating a sitemap is a bit tedious unfortunately.
     
    phoenixtropicals, Jul 28, 2023 IP
    FarrisFahad likes this.
  3. FarrisFahad

    FarrisFahad Well-Known Member

    Messages:
    484
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    173
    Digital Goods:
    4
    #3
    Thanks! I was just checking to see what people think because I was afraid that Google could not index my content.
     
    FarrisFahad, Jul 28, 2023 IP
  4. Daniel165

    Daniel165 Member

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #4
    In terms of SEO, using a <div> instead of a <button> or <input> element for a load more content button may not have a direct impact, as search engines primarily focus on the content and structure of the HTML. However, it's good practice to use semantic HTML elements for better code readability and accessibility.

    Using a <button> element is more semantically correct for interactive elements triggering an action, like loading more content. It can improve accessibility for users with disabilities and may provide a slight advantage in terms of code semantics.
     
    Daniel165, Dec 26, 2023 IP
  5. Nisshind

    Nisshind Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    I know this is a very old post - but, thats not even remotely true - <button> doesn't add any kind of improved accessibility :) - it is however more semantically correct.
     
    Nisshind, Dec 26, 2023 IP
  6. inspireyou

    inspireyou Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #6
    The use of a <div> instead of a <button> or <input> for a load more content button won't directly impact SEO. However, for better accessibility and semantic HTML, consider using a <button> element to convey the interactive nature of the element to both users and search engines. on the other hand I prefer to Inspire Mental Health and Wellness is a Telemedicine/Telehealth practice company that offers expedient facilities that will bring ease to your life and overall mental health.

    Source: https://inspireyoumentalhealthandwellness.com/
     
    inspireyou, Dec 27, 2023 IP
  7. Mark Elijah

    Mark Elijah Greenhorn

    Messages:
    145
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    18
    #7
    While divs can be styled to look like buttons, it's generally better to use a <button> tag for SEO and accessibility.
    Search engines understand buttons better and can use the button text for indexing. Also, screen readers recognize buttons for visually impaired users.
    So, for your "load more content" button, using a <button> tag with clear text will be best for SEO and user experience.
     
    Mark Elijah, Apr 23, 2024 IP