Skip to content

Commit

Permalink
Lists: Add guide text on using Emmett for efficient list creation
Browse files Browse the repository at this point in the history
Added a section on using Emmett abbreviations for efficient list creation. Included a reminder that Emmett abbreviations will be covered in depth later in the curriculum, and there is no immediate requirement to master them now. This aims to help users speed up their HTML workflow with Emmett.
  • Loading branch information
youssef-el-atmani authored Aug 12, 2024
1 parent 2fa12aa commit 71a434e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions foundations/html_css/html-foundations/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ Ordered lists are created using the `<ol>` element. Each individual item in them

<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>

### Quick Tip

Check failure on line 48 in foundations/html_css/html-foundations/lists.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Headings should be surrounded by blank lines

foundations/html_css/html-foundations/lists.md:48 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "### Quick Tip"] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md022.md
Imagine if you have multiple lists to type; you might find yourself typing `<li></li>` repeatedly, or you might type it once and *copy/paste* it until you're done. However, there is a more efficient way using **Emmet Abbreviation**, something you might have already experienced with the `!` character to quickly generate the full html boilerplate.

Check failure on line 49 in foundations/html_css/html-foundations/lists.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Proper names should have the correct capitalization

foundations/html_css/html-foundations/lists.md:49:331 MD044/proper-names Proper names should have the correct capitalization [Expected: HTML; Actual: html] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md044.md

Now, we will show you how to use Emmet to create lists more efficiently. Imagine you need to write an unordered list with 11 items. To do this using Emmet, simply type `ul>li*11` and hit `Enter` or `Tab`.

`ul>li*11` tells Emmet to create an unordered list `<ul>` with eleven nested list items `<li>`, all in one go.

It's worth noting that you can use this with `<ol>` as well, and you can obviously replace the number `11` with any other number you need.

Note that Emmet Abbreviations will be covered in depth later in the curriculum, and you're not required to know about them now.

### Assignment

<div class="lesson-content__panel" markdown="1">
Expand Down

0 comments on commit 71a434e

Please sign in to comment.