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 6540339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:57:59+00:00 2026-05-25T10:57:59+00:00

I have this with many options on it, i have nearly 30, i would

  • 0

I have this with many options on it, i have nearly 30, i would love to know if another way can be used to make him more readable ?

Thank you.

<p>
    <label for="subject">subject :</label>
    <select id="subject" name="subject">
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
    </select>
</p>
  • 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-25T10:57:59+00:00Added an answer on May 25, 2026 at 10:57 am

    According to the HTML5, the closing tag for the element is optional if it’s followed by another option tag, or if it’s the last element of the element.

    An option element’s end tag may be omitted if the option element is
    immediately followed by another option element, or if it is
    immediately followed by an optgroup element, or if there is no more
    content in the parent element.

    So you can write it like this to be more readable

    <p>
        <label for="subject">subject :</label>
        <select id="subject" name="subject">
            <option value="">
            <option value="">
            <option value="">
            <option value="">
            <option value="">
            <option value="">
            <option value="">
            <option value="">
            <option value="">
            <option value="">
        </select>
    </p>
    

    As far as I know this is also true for HTML 4.

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

Sidebar

Related Questions

I have this dilemma many times - and I would like one time and
I have this custom JSlider, which will be used in many other forms/windows. But
I have this (I'm only showing three records, there are many, many more) Array
I was trying so many options, but no results. However, I have this code
i have to make a form with many options to choose, in the case,
I have attempted this is many ways but failed consistently, hopefully you can help
I'm currently making a plugin. I have many options and want to know if
though I have visited this site many times, this is my first question. After
I am using jQuery fullcalendar plugin , I have tried altering this many different
I have this class that has many class members, and a lot of different

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.