-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lists: Add guide text on using Emmett for efficient list creation
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
1 parent
2fa12aa
commit 71a434e
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 GitHub Actions / Lint lesson filesHeadings should be surrounded by blank lines
|
||
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 GitHub Actions / Lint lesson filesProper names should have the correct capitalization
|
||
|
||
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"> | ||
|