How can I select the first tag with center id name in sample below code?
<div id=first>
<div id=center></div>
</div>
<div id=first>
<div id=center></div>
</div>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m assuming you copy-pasted twice which is why the code is duplicated. If not, you need to change those IDs to classes (ID must be unique in a document).
Also, put quotes around attributes (
id="center")