2026-01-14
Max. 100 points
Name:
| Task | Max. | Achieved |
|---|---|---|
| 1 | 10 | |
| 2 | 10 | |
| 3 | 10 | |
| 4 | 30 | |
| 5 | 20 | |
| 6 | 20 | |
| Sum | 100 |
| Statement | True | False |
|---|---|---|
| HTML is mainly used to create the layout and styling of a web page. | ||
| The <ol> tag is used to create an ordered list. | ||
The style attribute allows to define
a style directly on an element. | ||
| The <radio> tag defines a radio element in an HTML radio group. |
| Statement | True | False |
|---|---|---|
| CSS can change the background color of an HTML element. | ||
| `color: blue;` sets the background color to blue. | ||
| The CSS box model can dynamically change the content of HTML elements. | ||
| Margin is the distance between the content of an element and its border. |
| Statement | True | False |
|---|---|---|
| const f = (a) => { return a * 2; } is valid JavaScript. | ||
let is used to create variables in
modern JavaScript. | ||
| JavaScript can be used to add, edit and remove HTML elements. | ||
console.log(.) is used to print
values to the console. |
form tag<form>
<fieldset>
<legend>How do you want to get rich?</legend>
<div>
<input type="radio" id="luck" name="rich" value="luck" />
<label for="luck">Luck</label>
</div>
<div>
<input type="radio" id="work" name="rich" value="work" checked />
<label for="work">Hard work</label>
</div>
</fieldset>
</form>
img {
display: block;
border: 1px solid black;
padding: 3px;
}
<h2 id="exercises">Exercises</h2>
<ul id="links">
<li><a href="www.freecodecamp.org/...html-by-building-a-cat-photo-app/">
Learn HTML by Building a Cat Photo App Project</a></li>
<li><a href="www.freecodecamp.org/...css-by-building-a-cafe-menu/">
Learn Basic CSS by Building a Cafe Menu Project</a></li>
<li><a href="www.freecodecamp.org/...methods-by-building-a-music-player/">
Learn Basic String and Array Methods by Building a Music Player</a></li>
</ul>
Write a few lines of JavaScript code that changes the Text in the heading
from "Exercises" to "Practice". Then, append a new list element with
a link to "https://exercism.org" with the text "Exercism".let ex = document.getElementById('exercises');
ex.innerHTML = 'Practice';
let links = document.getElementById('links');
links.innerHTML += '<li><a href="https://exercism.org">Exercism</a></li>';