Skip to content

Commit f66aa24

Browse files
author
thomas.wei
committed
.
1 parent 1cf052c commit f66aa24

File tree

5 files changed

+240
-179
lines changed

5 files changed

+240
-179
lines changed

starter/02-HTML-Fundamentals/challenge.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66

77
<title>Challenges</title>
88
</head>
9-
<article>
10-
<h2>Converse low Top</h2>
11-
<img src="./img/challenges.jpg" alt="challenges" width="300" />
12-
<p class="price"><strong>$60.0</strong></p>
13-
<p class="shipping">Free shipping</p>
14-
<a class="more-info" href="#">More Information &rarr;</a>
15-
<h3 class="detail-title">Product details</h3>
16-
<ul class="detail-list">
17-
<li>light</li>
18-
<li>comfort</li>
19-
</ul>
20-
</article>
21-
<button class="cart">add to cart</button>
9+
<body>
10+
<article>
11+
<h2>Converse low Top</h2>
12+
<img src="./img/challenges.jpg" alt="challenges" width="300" />
13+
<p class="price"><strong>$60.0</strong></p>
14+
<p class="shipping">Free shipping</p>
15+
<a class="more-info" href="#">More Information &rarr;</a>
16+
<h3 class="detail-title">Product details</h3>
17+
<ul class="detail-list">
18+
<li>light</li>
19+
<li>comfort</li>
20+
</ul>
21+
</article>
22+
<button class="cart">add to cart</button>
23+
</body>
2224
</html>

starter/02-HTML-Fundamentals/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
}
15
body {
26
border: 5px solid #000;
7+
width: 500px;
8+
margin: 50px auto;
39
}
410
h2 {
511
text-align: center;
612
background-color: #ddd;
713
text-transform: uppercase;
14+
padding: 10px;
815
}
916

1017
.price {
@@ -16,6 +23,7 @@ h2 {
1623
text-transform: uppercase;
1724
font-weight: bold;
1825
color: #777;
26+
margin-bottom: 10px;
1927
}
2028

2129
.more-info:link,
@@ -31,16 +39,24 @@ h2 {
3139

3240
.detail-title {
3341
text-transform: uppercase;
42+
margin-bottom: 10px;
43+
margin-top: 20px;
3444
}
3545
.detail-list {
3646
list-style: square;
47+
margin-left: 20px;
48+
}
49+
.detail-list li {
50+
margin-bottom: 10px;
3751
}
3852

3953
.cart {
4054
font-size: 30px;
4155
text-transform: uppercase;
4256
background-color: #000;
4357
color: white;
58+
padding: 10px;
59+
width: 100%;
4460
}
4561
.cart:hover {
4662
color: black;

starter/03-CSS-Fundamentals/index.html

Lines changed: 138 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -15,141 +15,149 @@ <h4>The Basic Language of the Web: HTML</h4>
1515
<h5>The Basic Language of the Web: HTML</h5>
1616
<h6>The Basic Language of the Web: HTML</h6>
1717
-->
18-
19-
<header class="main-header">
20-
<h1>📘 The Code Magazine</h1>
21-
22-
<nav>
23-
<a href="blog.html">Blog</a>
24-
<a href="#">Challenges</a>
25-
<a href="#">Flexbox</a>
26-
<a href="#">CSS Grid</a>
27-
</nav>
28-
</header>
29-
30-
<article>
31-
<header>
32-
<h2>The Basic Language of the Web: HTML</h2>
33-
34-
<img
35-
src="img/laura-jones.jpg"
36-
alt="Headshot of Laura Jones"
37-
height="50"
38-
width="50"
39-
/>
40-
41-
<p id="author">
42-
Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027
43-
</p>
44-
45-
<img
46-
src="img/post-img.jpg"
47-
alt="HTML code on a screen"
48-
width="500"
49-
height="200"
50-
/>
18+
<div class="container">
19+
<header class="main-header">
20+
<h1>📘 The Code Magazine</h1>
21+
22+
<nav>
23+
<a href="blog.html">Blog</a>
24+
<a href="#">Challenges</a>
25+
<a href="#">Flexbox</a>
26+
<a href="#">CSS Grid</a>
27+
</nav>
5128
</header>
5229

53-
<p>
54-
All modern websites and web applications are built using three
55-
<em>fundamental</em>
56-
technologies: HTML, CSS and JavaScript. These are the languages of the
57-
web.
58-
</p>
59-
60-
<p>
61-
In this post, let's focus on HTML. We will learn what HTML is all about,
62-
and why you too should learn it.
63-
</p>
64-
65-
<h3>What is HTML?</h3>
66-
<p>
67-
HTML stands for <strong>H</strong>yper<strong>T</strong>ext
68-
<strong>M</strong>arkup <strong>L</strong>anguage. It's a markup
69-
language that web developers use to structure and describe the content
70-
of a webpage (not a programming language).
71-
</p>
72-
<p>
73-
HTML consists of elements that describe different types of content:
74-
paragraphs, links, headings, images, video, etc. Web browsers understand
75-
HTML and render HTML code as websites.
76-
</p>
77-
<p>In HTML, each element is made up of 3 parts:</p>
78-
79-
<ol>
80-
<li class="first-li">The opening tag</li>
81-
<li>The closing tag</li>
82-
<li>The actual element</li>
83-
</ol>
84-
85-
<p>
86-
You can learn more at
87-
<a
88-
href="https://developer.mozilla.org/en-US/docs/Web/HTML"
89-
target="_blank"
90-
>MDN Web Docs</a
91-
>.
92-
</p>
93-
94-
<h3>Why should you learn HTML?</h3>
95-
96-
<p>
97-
There are countless reasons for learning the fundamental language of the
98-
web. Here are 5 of them:
99-
</p>
100-
101-
<ul>
102-
<li class="first-li">
103-
To be able to use the fundamental web dev language
104-
</li>
105-
<li>
106-
To hand-craft beautiful websites instead of relying on tools like
107-
Worpress or Wix
108-
</li>
109-
<li>To build web applications</li>
110-
<li>To impress friends</li>
111-
<li>To have fun 😃</li>
112-
</ul>
113-
114-
<p>Hopefully you learned something new here. See you next time!</p>
115-
</article>
116-
117-
<aside>
118-
<h4>Related posts</h4>
119-
120-
<ul class="un-list-removal">
121-
<li>
30+
<article>
31+
<header class="post-header">
32+
<h2>The Basic Language of the Web: HTML</h2>
33+
12234
<img
123-
src="img/related-1.jpg"
124-
alt="Person programming"
125-
width="75"
126-
width="75"
35+
src="img/laura-jones.jpg"
36+
alt="Headshot of Laura Jones"
37+
height="50"
38+
width="50"
39+
class="author-img"
12740
/>
128-
<a href="#">How to Learn Web Development</a>
129-
<p class="related-author">By Jonas Schmedtmann</p>
130-
</li>
131-
<li>
132-
<img src="img/related-2.jpg" alt="Lightning" width="75" heigth="75" />
133-
<a href="#">The Unknown Powers of CSS</a>
134-
<p class="related-author">By Jim Dillon</p>
135-
</li>
136-
<li>
41+
42+
<p id="author">
43+
Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027
44+
</p>
45+
13746
<img
138-
src="img/related-3.jpg"
139-
alt="JavaScript code on a screen"
140-
width="75"
141-
height="75"
47+
src="img/post-img.jpg"
48+
alt="HTML code on a screen"
49+
width="500"
50+
height="200"
51+
class="post-img"
14252
/>
143-
<a href="#">Why JavaScript is Awesome</a>
144-
<p class="related-author">By Matilda</p>
145-
</li>
146-
</ul>
147-
</aside>
148-
149-
<footer>
150-
<p id="copyright" class="copyright text">
151-
Copyright &copy; 2027 by The Code Magazine.
152-
</p>
153-
</footer>
53+
</header>
54+
55+
<p>
56+
All modern websites and web applications are built using three
57+
<em>fundamental</em>
58+
technologies: HTML, CSS and JavaScript. These are the languages of the
59+
web.
60+
</p>
61+
62+
<p>
63+
In this post, let's focus on HTML. We will learn what HTML is all
64+
about, and why you too should learn it.
65+
</p>
66+
67+
<h3>What is HTML?</h3>
68+
<p>
69+
HTML stands for <strong>H</strong>yper<strong>T</strong>ext
70+
<strong>M</strong>arkup <strong>L</strong>anguage. It's a markup
71+
language that web developers use to structure and describe the content
72+
of a webpage (not a programming language).
73+
</p>
74+
<p>
75+
HTML consists of elements that describe different types of content:
76+
paragraphs, links, headings, images, video, etc. Web browsers
77+
understand HTML and render HTML code as websites.
78+
</p>
79+
<p>In HTML, each element is made up of 3 parts:</p>
80+
81+
<ol>
82+
<li class="first-li">The opening tag</li>
83+
<li>The closing tag</li>
84+
<li>The actual element</li>
85+
</ol>
86+
87+
<p>
88+
You can learn more at
89+
<a
90+
href="https://developer.mozilla.org/en-US/docs/Web/HTML"
91+
target="_blank"
92+
>MDN Web Docs</a
93+
>.
94+
</p>
95+
96+
<h3>Why should you learn HTML?</h3>
97+
98+
<p>
99+
There are countless reasons for learning the fundamental language of
100+
the web. Here are 5 of them:
101+
</p>
102+
103+
<ul>
104+
<li class="first-li">
105+
To be able to use the fundamental web dev language
106+
</li>
107+
<li>
108+
To hand-craft beautiful websites instead of relying on tools like
109+
Worpress or Wix
110+
</li>
111+
<li>To build web applications</li>
112+
<li>To impress friends</li>
113+
<li>To have fun 😃</li>
114+
</ul>
115+
116+
<p>Hopefully you learned something new here. See you next time!</p>
117+
</article>
118+
119+
<aside>
120+
<h4>Related posts</h4>
121+
122+
<ul class="un-list-removal">
123+
<li>
124+
<img
125+
src="img/related-1.jpg"
126+
alt="Person programming"
127+
width="75"
128+
width="75"
129+
/>
130+
<a href="#">How to Learn Web Development</a>
131+
<p class="related-author">By Jonas Schmedtmann</p>
132+
</li>
133+
<li>
134+
<img
135+
src="img/related-2.jpg"
136+
alt="Lightning"
137+
width="75"
138+
heigth="75"
139+
/>
140+
<a href="#">The Unknown Powers of CSS</a>
141+
<p class="related-author">By Jim Dillon</p>
142+
</li>
143+
<li>
144+
<img
145+
src="img/related-3.jpg"
146+
alt="JavaScript code on a screen"
147+
width="75"
148+
height="75"
149+
/>
150+
<a href="#">Why JavaScript is Awesome</a>
151+
<p class="related-author">By Matilda</p>
152+
</li>
153+
</ul>
154+
</aside>
155+
156+
<footer>
157+
<p id="copyright" class="copyright text">
158+
Copyright &copy; 2027 by The Code Magazine.
159+
</p>
160+
</footer>
161+
</div>
154162
</body>
155163
</html>

0 commit comments

Comments
 (0)