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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:57:52+00:00 2026-05-30T15:57:52+00:00

We had an interresting conversation today at work regarding the usage of special attributes

  • 0

We had an interresting conversation today at work regarding the usage of special attributes in HTML namely:

  1. Disabled
  2. Checked
  3. Selected
  4. All other similar attributes that don’t require a =”same_name” value

Some people at work use:

<td nowrap>
<input disabled>
<option selected>
<input checked>

And it actually works but some others (including me) use:

<td nowrap="nowrap">
<input disabled="disabled">
<option selected="selected">
<input checked="checked">

Both versions work fine and one of the integrators (I’m one of the programmers) says that both validate fine.

What are the cases where one scenario would be better than the other? I was thinking about XML validity when you put the values and code readability when you don’t. Are there any other scenarios or explanations you could add to that?

Thanks

  • 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-30T15:57:53+00:00Added an answer on May 30, 2026 at 3:57 pm

    The key question is whether you actually need XML conformance, but then this would be just one of the many details to take care of.

    Omitting the value is slightly more readable and looks slightly less foolish (these “Boolean” attributes look foolish when using the full syntax, don’t they?).

    There is a small chance of messing things up using the full syntax—when you mistype the value. But validators will catch that.

    Some ancient browsers only accepted the minimized syntax. This was long ago, but some of us still have habits based on such things.

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

Sidebar

Related Questions

Today at work I had an interesting discussion with one of my coworkers. He
Here's an interesting question I never really thought about until I had a conversation
I had an interesting problem today. As part of practice with my fluency with
Had this interesting question being asked today and the arguments varied from Proxy to
I had an interesting request from a client today and I'm not exactly sure
Had an interesting error today and couldn't find anything online about it so wondered
I had this conversation with a colleague, and it turned out to be interesting.
Had an interesting discussion with some colleagues about the best scheduling strategies for realtime
We've had an interesting request from a client. They'd like their users to have
We had a very interesting problem with a Win Forms project. It's been resolved.

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.