Create a list
github-learning-lab opened this issue · 0 comments
Step 9: Create a list
Your site with your new photo can be seen at: https://n-c-m.github.io/intro-html/
Note: Sometimes it takes a few minutes for a GitHub Pages site to reload. If your changes still don't appear after a few minutes, you might try clearing the cache in your browser and refreshing the page.
Ordered and unordered lists
Lists are used all over the internet. They come in two flavors: ordered and unordered.
- This
- Is an
- Ordered list
And...
- This
- Is an
- Unordered list
You can create a list using the <ol>
tag for ordered lists, and the <ul>
tag for unordered lists. Then, each item must be wrapped in an <li>
, or list item, tag. Here's the code that generates the list I showed you above:
<ol>
<li>This</li>
<li>Is an</li>
<li>Ordered list</li>
</ol>
And...
<ul>
<li>This</li>
<li>Is an</li>
<li>Unordered list</li>
</ul>
For the next exercise, you are going to create a list of your favorite websites. Later, we will add links so you can access those links quickly. For now, focus on creating the individual list items.
⌨️ Activity: Create a list of your favorite sites
- Edit the
index.html
file in your main branch by using this direct link or going to the Code tab, clicking on theindex.html
file, clicking the pencil 📝 to edit the HTML. - Inside the body tag, create a list, either ordered or unordered, of your favorite sites on the internet.
- In the Commit changes section, enter a commit message that describes what you've done.
- Ensure you've selected Create a new branch for this commit and start a pull request.
- Give your branch a descriptive name, like
add-links-and-lists
. - Click on Commit changes.
- Give your pull request a title, and a comment.
- Click on Create pull request.