# 1st Term Markup Languages Exam
You have to submit __one file for each exercise__, named __exercise{number}_{Surname}{Name}.{ext}__, where:
- __{number}__: is the number of the exercise.
- __{Surname}__: is the your surname (first letter upper case)
- __{Name}__: is the your name (first letter upper case)
- __{ext}__: is the according extension for the exercise
> Example: __exercise1_PuigcerverJoan.xml__
You can look at any material published in [Aules](https://aules.edu.gva.es/semipresencial/), but not anything else. Doing so will result in the annulment of the exam.
You CAN'T install any Visual Studio Code plugins.
{:toc}
## Exercise 1: XML (3 points)
Write a single XML document with the information of the following Tweets. The document must include the XML header.
If there's media in the tweet, just write and empty element with the kind of media it is as an attribute.



### Solution
```xml
<?xml version="1.0" encoding="UTF-8">
<tweets>
<tweet>
<account name="International Chess Federation">@FIDE_chess</account>
<text>
The FIDE World Championship March is off to a great start.
The Opening Gala took place today at the Dubai Opera
The first game Nepomniachtchi-Carlsen will be played on Fridat, Nov 26.
#FIDEmatch2021
</text>
<media type="video"/>
<date>2021-11-24<date>
<time>21:47<date>
<engagement>
<retweets>78</retweets>
<quote_tweets>11</quote_tweets>
<likes>353</likes>
</engagement>
<tweet>
<tweet>
<account name="Hubble">@NASAHubble</account>
<text>
Feast your eyes on the stunning Orion Nebula
Is it just us, or does it look like a space turkey? #HappyThanksgiving
from the Hublle team!
Learn more about this image here: go.nasa.gov/3DRaQzZ
#NebulaNovember
</text>
<media type="photo"/>
<date>2021-11-25<date>
<time>16:00<date>
<engagement>
<retweets>1120</retweets>
<quote_tweets>64</quote_tweets>
<likes>8559</likes>
</engagement>
<tweet>
<tweet>
<account name="National Geopgraphic">@NatGeo</account>
<text>
In Namibia's wildlife-rich Caprivi Strip, elephants roam
Mudumu National Park. See more of the 25 amazing journeys
we've picked for 2022:
on.natgeo.com/3xkbjZm
</text>
<media type="photo"/>
<date>2021-11-24<date>
<time>15:15<date>
<engagement>
<retweets>224</retweets>
<quote_tweets>12</quote_tweets>
<likes>2070</likes>
</engagement>
<tweet>
</tweets>
```
## Exercise 2: JSON (3 points)
Write a single JSON file that contains:
- A list of music genres. Each genre is identified with a __genre_id__.
- Genre 2: Jazz
- Genre 3: Swing
- Genre 1: Punk rock
- A list of music albums. Each album is related to a single music genre using the genre_id.
- Nevermind by Nirvana. Published September 24th, 1991. Genre: Punk rock.
- Ella and Louis by Louis Armstrong and Ella Fitzgerald. Published August 16th, 1956. Genre: Jazz.
- In the Mood by Glenn Miller. Published August 1st, 1939. Genre: Swing
### Solution
```json
{
"genre_list": [
{
"genre_id": 2,
"name": "Jazz"
},
{
"genre_id": 3,
"name": "Swing"
},
{
"genre_id": 1,
"name": "Punk rock"
}
],
"album_list": [
{
"name": "Nevermind",
"author": "Nirvana",
"released": "1991-09-24",
"genre_id": 1
},
{
"name": "Ella and Louis",
"author": ["Louis Armstrong", "Ella Fitzgerald"],
"released": "1956-08-16",
"genre_id": 2
},
{
"name": "In the Mood",
"author": "Glenn Miller",
"released": "1939-08-01",
"genre_id": 3
}
],
}
```
## Exercise 3: YAML (2 points)
Write a single YAML document with the computers (with specs) and deals:

### Solution
```yaml
computers:
- name: PcCom Silver Pro
cpu: Intel Core i5-10400F
ram: 16GB
storage:
hdd: 1TB
ssd: 500GB
gpu: GTX1660 SUPER
- name: PcCom Bronze
cpu: Intel Core i5-10400
ram: 8GB
storage:
hdd: 1TB
ssd: 480GB
- name: PcCom Basic Home
cpu: Intel Cekerib G5905
ram: 4GB
storage:
ssd: 240GB
- name: PcCom Basix Essential
cpu: Intel Core i3-10100
ram: 8GB
storage:
ssd: 480GB
- name: PcCom Gold
cpu: Intel Core i7-11700K
ram: 16GB
storage:
hdd: 2TB
ssd: 500GB
gpu: RTX 3070
```
## Exercise 4: Markdown (2 points)
Write a the following docuemnt using Markdown. Text between \*\* are __annotations__. Don't include them.
<div>
<div style="
transform: scale(0.8);
transform-origin: top left;
margin-left: 2rem;
border: 2px black;
border-style: solid;
padding: 2rem ;
border-radius: 2rem;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select:none;
user-select:none;
-o-user-select:none;"
unselectable="on"
onselectstart="return false;"
onmousedown="return false;
">
<h1 style="
width: 100%;
border-bottom-style: none;
margin-bottom: 1rem;
">Arcane **h1**</h1>
<h3>TV Series **h3**</h3>
<img src="https://m.media-amazon.com/images/M/MV5BYmU5OWM5ZTAtNjUzOC00NmUyLTgyOWMtMjlkNjdlMDAzMzU1XkEyXkFqcGdeQXVyMDM2NDM2MQ@@._V1_FMjpg_UX675_.jpg">
<p>
<a href="https://m.media-amazon.com/images/M/MV5BYmU5OWM5ZTAtNjUzOC00NmUyLTgyOWMtMjlkNjdlMDAzMzU1XkEyXkFqcGdeQXVyMDM2NDM2MQ@@._V1_FMjpg_UX675_.jpg">Link to image</a>
</p>
<h2>Release date: **h2**</h2>
<p>November 6th, 2021</p>
<h2>Argument</h2>
<p>Set in utopian Piltover and the oppressed underground of Zaun, the story follows the origins of two iconic League champions-and the power that will tear them apart.</p>
<h2>Episodes:</h2>
<ol>
<li>Welcome to the Playground</li>
<li>Some Mysteries Are Better Left Unsolved</li>
<li>The Base Violence Necessary for Change</li>
<li>Happy Progress Day!</li>
<li>Everybody Wants to Be My Enemy</li>
<li>When These Walls Come Tumbling Down</li>
<li>The Boy Savior</li>
<li>Oil and Water</li>
<li>The Monster You Created</li>
</ol>
<h2>Urls</h2>
<a href="https://www.imdb.com/title/tt11126994/episodes?ref_=tt_eps_sm">Arcane - Season 1 - IMDB</a>
</div>
</div>
### Solution
```markdown
# Arcane
## TV Series

[Link to image](https://m.media-amazon.com/images/M/MV5BYmU5OWM5ZTAtNjUzOC00NmUyLTgyOWMtMjlkNjdlMDAzMzU1XkEyXkFqcGdeQXVyMDM2NDM2MQ@@._V1_FMjpg_UX675_.jpg)
## Release date
November 6th, 2021
## Argument
Set in utopian Piltover and the oppressed underground of Zaun, the story follows the origins of two iconic
League champions-and the power that will tear them apart.
## Episodes
1. Welcome to the Playground
1. Some Mysteries Are Better Left Unsolved
1. The Base Violence Necessary for Change
1. Happy Progress Day!
1. Everybody Wants to Be My Enemy
1. When These Walls Come Tumbling Down
1. The Boy Savior
1. Oil and Water
1. The Monster You Created
## Urls
[Arcane - Season 1 - IMDB](https://www.imdb.com/title/tt11126994/episodes?ref_=tt_eps_sm)
```