Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why does the option tag render selected=selected instead of just selected?



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

Post New Answer

More Advanced Java Interview Questions

How to add new JTabbed pane?

1 Answers  


What is the purpose of the notify() method?

1 Answers  


Difference Between getRequest and PostRequest?

8 Answers   HCL, TCS,


What is TL and its use?

1 Answers  


How primary key is implemented in Oracle?

1 Answers  


Why is main purpose of XML?

5 Answers  


what is the use of State Factories?

1 Answers  


What method is invoked to cause an object to begin executing as a separate thread?

1 Answers  


Why do I get a duplicate name error when loading a jar file?

1 Answers  


What is the initial state, When a thread is created and started?

3 Answers  


what is JTA ?

2 Answers  


What are the different class loaders used by jvm?

1 Answers  


Categories