Question:

Which is right in web-design?

by  |  earlier

0 LIKES UnLike

On drop down lists, etc. (pre-selected) is it:

selected="selected"

OR

selected="yes"

(I know in FF 3 and IE 7 they both work), but i mean to conform to the standards.

Thanks in advance

 Tags:

   Report

3 ANSWERS


  1. <option value ="opel" selected="selected">Opel</option>


  2. It's like this:

    <option value= "" SELECTED>my text</selected>

    You could have just look this up on Google which would have saved you asking the question.

  3. It depends.

    You can validate your html/css at these addresses:

    http://jigsaw.w3.org/css-validator/ - CSS

    http://validator.w3.org/ - HTML

    Of course, there's no need to validate PHPs :)

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions