Home » HTML » Html miscellaneous » Question
  1. Which one is correct syntax?
    1. <p id=”%td”>
    2. <p id=”#td”>
    3. <p id=”1td”>
    4. <p id=”td”>
    5. None of these
Correct Option: D

<p id=”td”> is the correct syntax for id type declaration. Id attribute’s value should start with a letter or an underscore. We cannot use any number or other character for defining name of the id.



Your comments will be displayed only after manual approval.