Question: Working with the DOM. I have a question about working with the DOM. I'm using Chrome. So lets say we have a simple nav with

Working with the DOM.

I have a question about working with the DOM. I'm using Chrome.

So lets say we have a simple nav with anchor tags, like so

If I was in the DOM, how can I select each a tag individually so that I can add different text content to each a tag? so through the DOM, how can I change from what is above to something like that is below? I understand how to select one tag, or the first tag, but I don't understand how to reach the second one and edit it, or the third one and edit it and so on.

contact

about

login

register

thank you.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!