From a4195e4fc5b9f17d2c899b0ff02d9c8dd619d12a Mon Sep 17 00:00:00 2001 From: Oumaimafisaoui Date: Tue, 16 Jul 2024 17:09:53 +0100 Subject: [PATCH] feat/test(DPxAI): Added the subject and modified naming for the test of Quest00/Ex01 and modified the .gitignore file --- .gitignore | 1 + dom/{the-calling_test.js => call-it_test.js} | 0 subjects/DPxAI/call_it/README.md | 41 ++++++++++++++++++++ 3 files changed, 42 insertions(+) rename dom/{the-calling_test.js => call-it_test.js} (100%) create mode 100644 subjects/DPxAI/call_it/README.md diff --git a/.gitignore b/.gitignore index 6ab1d6dfb..beddb3fc4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules rust/**/target/ js/soluss +**/.DS_Store diff --git a/dom/the-calling_test.js b/dom/call-it_test.js similarity index 100% rename from dom/the-calling_test.js rename to dom/call-it_test.js diff --git a/subjects/DPxAI/call_it/README.md b/subjects/DPxAI/call_it/README.md new file mode 100644 index 000000000..06bd18778 --- /dev/null +++ b/subjects/DPxAI/call_it/README.md @@ -0,0 +1,41 @@ +## Call it + +> Brainpower mode + +### Context + +Congrats! You created the very first base for your entity and you witnessed its appearance in the Digital +World - your browser.. However, it is still a tiny seed of the marvelous thing it could become. Be patient; +there's still a bit of work to do. + +### Directions + +First of all, instead of writing down what things are _(you're not writing down on your hand the word 'hand', +are you?)_, we're going to identify them semantically with the very practical [id +attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attri butes/id). This `id` has to be a **unique** +identifier on your webpage, allowing you to target your element when needed. You can compare it to your name and +surname; this is what identifies you to other people, and if someone's calling you by your name, you answer. + +### Instructions + +So let's identify the 3 elements we have so far: in each section, remove the text content from inside the tag +and set it as the value of the `id` attribute of the corresponding `section` text. + +**Run your code in the editor preview:** \ +you don't see _anything_? Don't freak out! \ +Inspect the HTML that has been created with your +[browser inspector tool](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools), +and if you done it correctly, you should see the 3 sections inside the `body` with the `id` attribute set in +your HTML structure. + +### Code examples + +To 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)