Skip to content

Commit 140d07b

Browse files
committed
did some more stuff, commit this after the previous one
1 parent d6b9e47 commit 140d07b

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

projectfolder/02-HTML-Fundamentals/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h3>What is HTML?</h3>
5555
</p>
5656
<p>In HTML, each element is made up of 3 parts:</p>
5757
<ol>
58-
<li>The opening tag</li>
58+
<li class="first-li">The opening tag</li>
5959
<li>The closing tag</li>
6060
<li>The actual element</li>
6161
<li>You can learn more at the MDN Web Docs.</li>
@@ -71,7 +71,7 @@ <h3>Why should you learn HTML</h3>
7171
<p>There are countless reasons for learning the fundamental language of the web. Here are 5 of them:</p>
7272

7373
<ul>
74-
<li>To be able to use the fundamental web dev language</li>
74+
<li class="first-li">To be able to use the fundamental web dev language</li>
7575
<li>To hand-craft beautiful websites instead of relying on tools like Worpress or Wix</li>
7676
<li>To build web applications</li>
7777
<li>To impress friends To have fun 😃</li>

projectfolder/02-HTML-Fundamentals/style.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,49 @@ aside {
7777
border-top: 5px solid #1098ad;
7878
border-bottom: 5px solid #1098ad;
7979
}
80+
81+
/* .first-li {
82+
font-weight: bold;
83+
} */
84+
85+
li:first-child {
86+
font-weight: bold;
87+
}
88+
89+
li:last-child {
90+
font-style: italic;
91+
}
92+
/* style based on odd number of item, odd can be changed to even or a specific number
93+
li:nth-child(odd) {
94+
color: red;
95+
}
96+
*/
97+
98+
/*
99+
This selector selects the first child of the article, but will only color it black if its paragraph element, otherwise this does nothing. In the case of our index, the <article> was the first child
100+
article p:first-child {
101+
color: black;
102+
} */
103+
104+
/* Styling Hyperlinks */
105+
/* Style a elements with an href attrivute on them*/
106+
a:link {
107+
color: #1098ad;
108+
text-decoration: none;
109+
}
110+
111+
a:visited {
112+
/* color: #777; */
113+
color: #1098ad;
114+
}
115+
116+
a:hover {
117+
color: orangered;
118+
font-weight: bold;
119+
text-decoration: underline orangered;
120+
}
121+
/* The state of actively clicking */
122+
a:active {
123+
background-color: black;
124+
font-style: italic;
125+
}

0 commit comments

Comments
 (0)