Skip to content

Commit a05a412

Browse files
committed
Created external css stylesheet file style.css for styling html.
1 parent acbca82 commit a05a412

File tree

2 files changed

+147
-135
lines changed

2 files changed

+147
-135
lines changed
Lines changed: 144 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<title>The Basic Language of the Web: HTML</title>
6-
</head>
7-
8-
<body>
9-
<!--
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link href="style.css" rel="stylesheet" />
6+
<title>The Basic Language of the Web: HTML</title>
7+
</head>
8+
9+
<body>
10+
<!--
1011
<h1>The Basic Language of the Web: HTML</h1>
1112
<h2>The Basic Language of the Web: HTML</h2>
1213
<h3>The Basic Language of the Web: HTML</h3>
@@ -15,132 +16,140 @@ <h5>The Basic Language of the Web: HTML</h5>
1516
<h6>The Basic Language of the Web: HTML</h6>
1617
-->
1718

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

starter/03-CSS-Fundamentals/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
h1 {
2+
color: blue;
3+
}

0 commit comments

Comments
 (0)