Skip to content

Commit 3cc4873

Browse files
authored
Update readme.md
1 parent fd246fc commit 3cc4873

File tree

1 file changed

+46
-11
lines changed

1 file changed

+46
-11
lines changed

readme.md

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
## Learning Goals
66

7-
In this Module Exercise you will apply all the concepts you have been learning:
7+
In this Module Exercise you will apply all the concepts you have been learning, such as:
88

9-
- Use different HTML tags.
10-
- Structure your HTML page with **Block Elements**.
11-
- Add content to your HTML page with **Inline Elements**.
9+
- Using different HTML tags.
10+
- Structuring your HTML page with **Block Elements**.
11+
- Adding content to your HTML page with **Inline Elements**.
1212

13-
## Requirements
13+
## Requirements
1414

15-
- Go to the [HTML module exercise repository](https://github.com/ironhack-labs/lab-html-cloning-medium) in Github.
15+
- Go to the [HTML module exercise repository](https://github.com/ironhack-labs/lab-html-cloning-medium) on Github.
1616
- Click on the button "Clone or download" and a window will appear:
1717
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_3cd92839c499fe04b53a5bbee5ce2dfe.png)
1818
- Click the button "Download as zip"
@@ -25,21 +25,56 @@ The `starter-code` folder contains an `index.html` file with the main structure
2525

2626
### Instructions
2727

28-
In this exercise, you will clone a [Medium](https://medium.com/) article. Medium is a site that contains very interesting articles of several topics, we highly recommend you to follow some of the authors if you have interest in [Digital Design](https://medium.com/topic/digital-design), [JavaScript](https://medium.com/tag/javascript), [Bitcoins](https://medium.com/tag/bitcoin), or [Artificial Intelligence](https://medium.com/tag/artificial-intelligence).
28+
#### Introduction
2929

30-
In this exercise, you will clone the [8 Things Every Person Should Do Before 8 a.m.](https://medium.com/the-mission/8-things-every-person-should-do-before-8-a-m-cc0233e15c8d) article. This is a two-part article, where we are going to clone first of all the HTML Structure. In the second part of the exercise, we are going to style this HTML structure.
30+
In this exercise, you will clone a [Medium](https://medium.com/) article. Medium is a site that contains interesting articles about a variety of topics, we highly recommend you to follow some of the authors if you have interest in [Digital Design](https://medium.com/topic/digital-design), [JavaScript](https://medium.com/tag/javascript), [Bitcoins](https://medium.com/tag/bitcoin), or [Artificial Intelligence](https://medium.com/tag/artificial-intelligence).
3131

32-
As you can see, the article is very long. We want you to get focus on the HTML structure, not in the content. In each article section, it's enough to copy-paste three paragraphs of content, not the whole content. For example, in the following section you have to add just the paragraphs in the red box:
32+
In this exercise, you will clone the [8 Things Every Person Should Do Before 8 a.m.](https://medium.com/the-mission/8-things-every-person-should-do-before-8-a-m-cc0233e15c8d) article. This is a two-part article, where we are going to clone first of all the HTML Structure. Later in the second part, we are going to style this HTML structure.
33+
34+
#### Setup
35+
36+
As you can see, the article is very long. We want you to get focus on the HTML structure, not on the content. In each article section, **it's enough to copy-paste three paragraphs of content**, not the all of content. For example, in the following section you have to add just the paragraphs in the red box:
3337

3438
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_de7472368e4d78c834d0df5cdf281a20.png)
3539

3640
As you can see, you just have to add the section's title and the first three paragraphs. You have also to remember that you just have to add the HTML structure. So, for the image above, the result we want is the following:
3741

3842
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_5ff67c9322ec4d409cd80cfa9cdc58e9.png)
3943

40-
**As you can see, we don't have any kind of styles here, just HTML and text.** The most difficult part of this exercise is try to figure out what you need to structure the article, so in the next part of the exercise you will not find too many problems while styling the article.
44+
**As you can see, we don't have any kind of styles here, just HTML and text.** To make this easier to visualize, copy and paste the following into your [**Chrome Console**](https://developers.google.com/web/tools/chrome-devtools/console/) (Ctrl + shift + J on Windows / Linux, Cmd + Option + J on Mac), and hit enter:
45+
46+
```javascript
47+
// disable all externally linked stylesheets
48+
for (var i = document.styleSheets.length - 1; i >= 0; i--) {
49+
document.styleSheets[i].disabled = true;
50+
}
51+
52+
var arAllElements = (typeof document.all != 'undefined') ?
53+
document.all : document.getElementsByTagName('*');
54+
for (var i = arAllElements.length - 1; i >= 0; i--) {
55+
var elmOne = arAllElements[i];
56+
if (elmOne.nodeName.toUpperCase() == 'STYLE') {
57+
// remove <style> elements defined in the page <head>
58+
elmOne.parentNode.removeChild(elmOne);
59+
} else {
60+
// remove per-element styles and style-related attributes
61+
elmOne.setAttribute('style', '');
62+
elmOne.setAttribute('size', '');
63+
elmOne.setAttribute('face', '');
64+
elmOne.setAttribute('color', '');
65+
elmOne.setAttribute('bgcolor', '');
66+
elmOne.setAttribute('background', '');
67+
}
68+
}
69+
```
70+
71+
This will make all of the styles disappear!
72+
73+
#### Time to Code
74+
75+
The most difficult part of this exercise is try to figure out what you need to structure the article, and picking the correct *semantic* tags. This will make your job easier in the next exercise when it comes time to styling.
4176

42-
Our recommendation is: try to avoid thinking in the composition, just in the text and images. Try to identify the different sections, and add `id`'s to each `<div>`, `<section>`, `<article>`, or `<header>` block elements to identify this elements. i.e.:
77+
Our recommendation is: try to avoid thinking in the composition, just in the text and images. Try to identify the different sections, and add `id`'s to each `<div>`, `<section>`, `<article>`, or `<header>` block elements to identify these elements. i.e.:
4378

4479
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_53c860ca75220e0d63fc9c424f0ecd1f.png)
4580

0 commit comments

Comments
 (0)