Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a list #5

Closed
github-learning-lab bot opened this issue Mar 14, 2022 · 0 comments
Closed

Create a list #5

github-learning-lab bot opened this issue Mar 14, 2022 · 0 comments

Comments

@github-learning-lab
Copy link
Contributor

Step 9: Create a list

Your site with your new photo can be seen at: https://beratunlu.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.

  1. This
  2. Is an
  3. 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

  1. Edit the index.html file in your main branch by using this direct link or going to the Code tab, clicking on the index.html file, clicking the pencil 📝 to edit the HTML.
  2. Inside the body tag, create a list, either ordered or unordered, of your favorite sites on the internet.
  3. In the Commit changes section, enter a commit message that describes what you've done.
  4. Ensure you've selected Create a new branch for this commit and start a pull request.
  5. Give your branch a descriptive name, like add-links-and-lists.
  6. Click on Commit changes.
  7. Give your pull request a title, and a comment.
  8. Click on Create pull request.

Look for my response in your new pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants