Information about cookies on this page

Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy

  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in
  
  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in

Recap

In the second lesson, we learned that:

  • Headings are created with the elements h1 to h6 (h = heading). We choose the level by importance, not by size. h1 is the main heading of the page, and a page normally has only one.
  • Paragraphs are created with the p element (paragraph).
  • The div element (division) groups other elements together. It has no meaning of its own.
  • The strong element (strong importance) marks important text, and the em element (emphasis) marks text we stress. Browsers show them in bold and in italics. If text should only look bold or italic, without extra meaning, we use CSS.
  • The browser joins spaces, tabs and line breaks that follow one another in the code into a single space. That's why pressing Enter in the code doesn't start a new line on the page, and why indentation doesn't change how the page looks.
  • We start a new line with the br element (break), which has no content or closing tag. We use it only for line breaks that belong to the content, such as in poems or addresses, not to make space between texts.
  • Lists are created with the ol (ordered list) or ul (unordered list) element, and their items with the li element (list item).
  • Comments are written like this: <!-- comment -->. The browser doesn't display them.

In this lesson, we learned how to create the text content of web pages. Next comes a small project, in which you'll build a web page on your own with what you've learned in the first two lessons. Then, in the lesson on advanced HTML elements, we will learn what attributes are, how to use links, and how to add media content such as images and videos.

Instructions

  1. 1

    Congratulations on completing the second lesson! The editor contains your final code from this lesson, and we will build on it after the project. Now you can try customizing the page with your newly acquired knowledge.

Back

10/10

  1. 1. Headings
  2. 2. Paragraphs
  3. 3. Quiz: Paragraphs
  4. 4. Divs
  5. 5. Text Styling
  6. 6. Line Breaks
  7. 7. Lists
  8. 8. Quiz: Lists
  9. 9. Comments
  10. 10. Recap
Next

Try it yourself

Do this exercise right here in your browser. No account needed.