Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Struts Interview Questions and Answers

Ques. Why does the option tag render selected=selected instead of just selected?
Ans. Attribute minimization (that is, specifying an attribute with no value) is a place where HTML violates standard XML syntax rules. This matters a lot for people writing to browsers that support XHTML, where doing so makes the page invalid. It's much better for Struts to use the expanded syntax, which works the same on existing browsers interpreting HTML, and newer browsers that expect XHTML-compliant syntax. Struts is following the behavior recommended by the XHTML specification.

<select id="item" name="item" selected="selected">
<option value="option1">Option1</option>
<option value="option2">Option2</option>
</select>
Is it helpful? Yes No

Most helpful rated by users:

©2020 WithoutBook