Skip to content

Commit

Permalink
Merge branch 'master' into basic-file-manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Stojanovic authored Jan 10, 2022
2 parents 274b615 + dae1723 commit 702753f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ Types of change:

### Fixed

## January 9th 2022

### Changed
- [Go - Go Packages - Remove type in the gap from PQ](https://github.com/enkidevs/curriculum/pull/2986)

## January 5th 2022

### Fixed
Expand All @@ -68,6 +73,9 @@ Types of change:

## December 30th 2021

### Fixed
- [HTML - The Caption Element - Add minor info when to use strong, b and font-weight property to avoid confusion](https://github.com/enkidevs/curriculum/pull/2972)

### Changed
- [SQL - Join Role - Change table example](https://github.com/enkidevs/curriculum/pull/2973)

Expand Down
3 changes: 0 additions & 3 deletions go/go-introduction/go-introduction/go-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ category: must-know
practiceQuestion:
formats:
- fill-in-the-gap
- type-in-the-gap
context: standalone
revisionQuestion:
formats:
Expand Down Expand Up @@ -90,9 +89,7 @@ import (
)
```

```plain-text
???
```

- B
- A
Expand Down
17 changes: 13 additions & 4 deletions web/html/tables/caption.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ links:
- >-
[HTML <caption>
Element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption){documentation}
- >-
[HTML <b>
Element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b){documentation}
practiceQuestion:
formats:
- fill-in-the-gap
Expand All @@ -31,16 +34,16 @@ The HTML `<caption>`, or the **Table Caption** element is used to specify a titl

Adding a clear and concise description of the table's content within the `<caption>` element is useful for helping people decide if they want to read the table or skip over it.

When used, `<caption>` element must to be the **first** element within the `<table>` element to be valid, although using CSS it can be moved accordingly. The property `caption-side` can be set to `bottom` to quickly move the caption to the bottom of the table even with it added to the top of the table.
When used, the `<caption>` element must be the **first** element within the `<table>` element to be valid, although using CSS, it can be moved accordingly. The property `caption-side` can be set to `bottom` to quickly move the caption to the bottom of the table even with it is added to the top of the table.

Example:

```html
<table>
<caption>Employee List</caption>
<tr>
<td><strong>Name</strong></td>
<td><strong>Start Date</strong></td>
<td><b>Name</b></td>
<td><b>Start Date</b></td>
</tr>
<tr>
<td>Jimmy</td>
Expand All @@ -52,7 +55,13 @@ Example:
</table>
```

> 💡 In the example above, the `<strong>` element is used to bring importance to the "Name" and "Starting Date" tags. However, it can be replaced with the `style="font-weight:bold;"` CSS property.
In the example above, the `<b>` element is used to bring attention to the "Name" and "Starting Date" tags.

If you'd like to only style the elements bold without bringing attention to them, you can apply the `style="font-weight:bold;"` CSS property:
```html
<td style="font-weight:bold"> Name </td>
<td style="font-weight:bold"> Start Date </td>
```

![table-caption](https://img.enkipro.com/ec2e595bc8ee7beb5d9882c1ae15022e.png)

Expand Down

0 comments on commit 702753f

Please sign in to comment.