Skip to content

Commit bfe1480

Browse files
committed
chore(css) add newlines to HTML EoF, add language to info strings in markdown
1 parent 568f0f1 commit bfe1480

18 files changed

+27
-27
lines changed

learn/inspecting/inspecting.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@
7979
</div>
8080
</body>
8181

82-
</html>
82+
</html>

learn/media-queries/grid.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,4 @@ <h2>External vegetable-based links</h2>
213213
</div>
214214
</body>
215215

216-
</html>
216+
</html>

learn/media-queries/step1.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ <h2>External vegetable-based links</h2>
141141
</div>
142142
</body>
143143

144-
</html>
144+
</html>

learn/media-queries/step2.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@ <h2>External vegetable-based links</h2>
157157
</div>
158158
</body>
159159

160-
</html>
160+
</html>

learn/media-queries/step3.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ <h2>External vegetable-based links</h2>
174174
</div>
175175
</body>
176176

177-
</html>
177+
</html>

learn/solutions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Task: Write a declaration in a new rule that will reset the background color bac
1010

1111
One possible solution is as follows:
1212

13-
```
13+
```css
1414
#outer #inner a {
1515
background-color: initial;
1616
}
@@ -28,7 +28,7 @@ Task: Target the `<a>` element with a title attribute and make the border pink (
2828

2929
To select elements with a title attribute we can add `title` inside the square brackets, which will select the second link, which is the only one with a title attribute.
3030

31-
```
31+
```css
3232
a[title] {
3333
border-color: pink;
3434
}
@@ -38,7 +38,7 @@ Target the `<a>` element with an href attribute which contains the word contact
3838

3939
There are two things we want to match here, the href value "/contact" and also "../contact". So we need to match the string "contact" anywhere in the value using `*=`. This will select the third and fourth links.
4040

41-
```
41+
```css
4242
a[href*="contact"] {
4343
border-color: orange;
4444
}
@@ -48,7 +48,7 @@ Target the `<a>` element with an href value starting with https and give it a gr
4848

4949
Here we can look for an href value which starts with "https" and so use `^=`, this will only select the first link.
5050

51-
```
51+
```css
5252
a[href^="https"] {
5353
border-color: green;
5454
}
@@ -60,7 +60,7 @@ a[href^="https"] {
6060

6161
Task: Change the size of the second box (by adding CSS to the .alternate class) to make it match the first box in width and height.
6262

63-
```
63+
```css
6464
.alternate {
6565
box-sizing: border-box;
6666
width: 390px;
@@ -74,7 +74,7 @@ You will need to increase the height and width of the second block, to add the s
7474

7575
To style the box we add a border, using the `border` property. Round the corners with `border-radius` and then add the background image setting the size to `contain`.
7676

77-
```
77+
```css
7878
.box {
7979
border: 5px solid #000;
8080
border-radius: 10px;
@@ -85,7 +85,7 @@ To style the box we add a border, using the `border` property. Round the corners
8585

8686
We've used {{CSSXref("color_value/rgb", "rgb()")}} colors to add a background color to the heading which is semi-transparent.
8787

88-
```
88+
```css
8989
h2 {
9090
background-color: rgb(0 0 0 50%);
9191
color: white;

learn/tasks/backgrounds/marking.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The aim of the tasks are to demonstrate an understanding of the properties cover
66

77
This task covers understanding of `border`, `border-radius`, `background-image`, and `background-size`. Also, it checks that the student understands how to use RGB colors to make a background color partly transparent.
88

9-
```
9+
```css
1010
.box {
1111
border: 5px solid #000;
1212
border-radius: 10px;
@@ -33,7 +33,7 @@ There are also some elements which link back to earlier lessons:
3333
- They need to add padding to the heading in order that it doesn't overlay the star image - this links back to learning from the earlier Box Model lesson.
3434
- The text with be aligned with the `text-align` property.
3535

36-
```
36+
```css
3737
.box {
3838
border: 5px solid lightblue;
3939
border-top-left-radius: 20px;

learn/tasks/float/float3-download.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
</div>
5353
</body>
5454

55-
</html>
55+
</html>

learn/tasks/float/float3.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@
7373
</body>
7474
<script src="../playable.js"></script>
7575

76-
</html>
76+
</html>

learn/tasks/grid/grid2-download.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@
5555
</div>
5656
</body>
5757

58-
</html>
58+
</html>

learn/tasks/grid/grid2.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@
7979
</body>
8080
<script src="../playable.js"></script>
8181

82-
</html>
82+
</html>

learn/tasks/position/position1-download.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
</div>
5353
</body>
5454

55-
</html>
55+
</html>

learn/tasks/position/position1.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@
7070
</body>
7171
<script src="../playable.js"></script>
7272

73-
</html>
73+
</html>

learn/tasks/position/position2-download.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@
7676
</div>
7777
</body>
7878

79-
</html>
79+
</html>

learn/tasks/values/marking.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The student needs to take a color which is a hex code and add the same color to
66

77
They have a link to [a color conversion tool](https://convertingcolors.com/hex-color-86DEFA.html), so they just need to know what the different values look like.
88

9-
```
9+
```css
1010
.hex {
1111
background-color: #86DEFA;
1212
}
@@ -28,7 +28,7 @@ They have a link to [a color conversion tool](https://convertingcolors.com/hex-c
2828

2929
The student is asked to use a variety of length units to size some boxes.
3030

31-
```
31+
```css
3232
h1 {
3333
font-size: 50px;
3434
}
@@ -50,7 +50,7 @@ h1+p {
5050

5151
In this task the students needs to use a keyword and a percentage to change the position of the background image.
5252

53-
```
53+
```css
5454
.box {
5555
background-image: url(star.png);
5656
background-repeat: no-repeat;

learn/values-units/color-hsl.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@
6767
</body>
6868
<script src="../playable.js"></script>
6969

70-
</html>
70+
</html>

learn/values-units/color-rgba.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@
7272
</body>
7373
<script src="../playable.js"></script>
7474

75-
</html>
75+
</html>

learn/values-units/image.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@
5656
</body>
5757
<script src="../playable.js"></script>
5858

59-
</html>
59+
</html>

0 commit comments

Comments
 (0)