From 71c77a60f0b64f2760a54ca93a23513e9bc7d19c Mon Sep 17 00:00:00 2001 From: Marie Malarme Date: Mon, 8 Mar 2021 11:58:13 +0000 Subject: [PATCH] the-calling: add code example to set an id on an html element --- subjects/the-calling/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/subjects/the-calling/README.md b/subjects/the-calling/README.md index 336477c1..607b9bba 100644 --- a/subjects/the-calling/README.md +++ b/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 +
+``` + ### Notions - [`id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)