Question

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
In the codes I wrote below, I don’t understand the different usage of brackets. The first one just has ‘h’ between the bracket, but the second one has id=“botswana” inside. Why is there such difference? What happens if you write id, src or href inside the bracket?

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

Brown Bears

Botswana

<do not remove the three backticks above>

well, if both elements would be h1:

<h1>Brown Bears</h1>
<h1 id="botswana">Botswana</h1>

how would you distinguish between the elements when applying style? For this we can use id

<h></h> is not a valid html element

src is an attribute for <img> to tell the source/location of the image

href is an attribute for anchor element (<a></a>) to tell the anchor element where it should go (href=hyperlink reference, a hyperlink referencing to a different page/website)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.