Why does the option tag render selected=selected instead of just selected?
Answer / Ravindra Pratap Singh
The reason the `option` tag renders `selected=selected` instead of just `selected` is due to HTML's requirement for multiple attributes on a single element. If you only wrote `<option selected>`, it would be interpreted as an empty string for the attribute value, which is not valid according to the HTML standard.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to add new JTabbed pane?
What is the purpose of the notify() method?
Difference Between getRequest and PostRequest?
What is TL and its use?
How primary key is implemented in Oracle?
Why is main purpose of XML?
what is the use of State Factories?
What method is invoked to cause an object to begin executing as a separate thread?
Why do I get a duplicate name error when loading a jar file?
What is the initial state, When a thread is created and started?
what is JTA ?
What are the different class loaders used by jvm?