Browse Source

the-calling: add code example to set an id on an html element

content-update
Marie Malarme 3 years ago committed by Clément
parent
commit
71c77a60f0
  1. 8
      subjects/the-calling/README.md

8
subjects/the-calling/README.md

@ -25,6 +25,14 @@ Inspect the HTML that have been created with your
& if you done it correctly, you should see inside the `body` the 3 sections with
the `id` attribute set in your HTML structure.
### Code examples
Set the `id` of a `div` tag to `"my-lil-div"`:
```html
<div id="my-lil-div"></div>
```
### Notions
- [`id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)

Loading…
Cancel
Save