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

  • Home
  • SEARCH
  • 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 938187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:36:05+00:00 2026-05-15T21:36:05+00:00

I’m new to HTML. When I started reading documentation about lists, I’ve noticed that

  • 0

I’m new to HTML. When I started reading documentation about lists, I’ve noticed that everywhere an <ul>, <li> structure is used, even for creating very simple lists.

But for me it’s most comfortable to use only <a> elements with CSS:

display: block;
/* and/or */
float: left;

So, why use <ul>, <li> instead of just <a>?

Thanks a lot.

  • 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-05-15T21:36:06+00:00Added an answer on May 15, 2026 at 9:36 pm

    Because structurally they’re the most appropriate elements for that purpose. Also helps screen reader users in terms of properly dictating the elements of a page.

    Remember that HTML is for markup/content ( what IS this text? a paragraph? wrap it in a p tag ), CSS is for styling, JS is for behaviour.

    You can have thousands of anchors on your web page, but what if you want to style anchors nested within listed items differently from other anchors?

    <ul>
    <li><a href="#">blah</a></li>
    </ul>
    
    <a href="#">sfl</a>
    

    If you had done things properly, your css would be trivial to implement

    a { }
    ul li a { }
    

    Otherwise you’d have to throw classes around anchors and it would be messy and unstructural.

    In regards to the SEO – I believe that in the past semantically marked up code didn’t have much bearing but nowadays with specs like RDF, HTML 5 elements the web is getting more and more semantic, so it’s only beneficial to be as semantic as you can be.

    In 2010, Google specified three forms
    of structured metadata that their
    systems will use to find structured
    semantic content within webpages. Such
    information, when related to reviews,
    people profiles, business listings,
    and events will be used by Google to
    enhance the ‘snippet’, or short piece
    of quoted text that is shown when the
    page appears in search listings.
    Google specifies that that data may be
    given using microdata, microformats or
    RDFa.[13] Microdata is specified
    inside itemtype and itemprop
    attributes added to existing HTML
    elements; microformat keywords are
    added inside class attributes as
    discussed above; and RDFa relies on
    rel, typeof and property attributes
    added to existing elements.[14]

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

Sidebar

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.