HTML Academy
The meta tag, which is used for page character encoding
HTML document structure15/19
Back to the list of tasks
  • 1. The HTML doctype, or document type declaration
  • 2. Basic HTML tags
  • 3. The head tag, which provides metadata information about the page
  • 4. The title tag for page titles
  • 5. The main tag for main content
  • 6. The header and footer tags
  • 7. The section tag, which is used for semantic sections
  • 8. The nav tag, which is used to specify the main navigation
  • 9. The article tag, which is used to indicate an independent section
  • 10. The aside tag, which is used to specify additional content
  • 11. The h1-h6 and title tags in HTML
  • 12. The p tag for paragraphs
  • 13. Let’s finish designing our pages
  • 14. The meta tag, which is used for page character encoding
  • 15. The meta tag, which is used for keywords
  • 16. Let’s connect another frame to the page
  • 17. Summary of “HTML document structure”
  • 18. First challenge
  • 19. First mastery challenge
Let’s connect another frame to the page
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

The meta tag, which is used for keywords

You can add information that search engines will find useful to the page using meta tags, such as a list of keywords and a short description of the page.

You can specify a list of keywords using another <meta> tag, this time with the attribute name assigned the value keywords. Keywords (the most important words from the page content) are listed in the content attribute and separated from each other with commas:

<meta name="keywords" content="important, key, words">

Search engines used to consider this tag to be very important. What is the situation now? We would love to tell you, but this is a big secret that Yandex and Google are keeping from us.

You can write a short description for your page in the same way, using a third <meta> tag, only here the value of the attribute name will be description:

<meta name="description" content="short description">

The brief description (or summary) of the webpage is often used by search engines when displaying search results.

Browser screenshot with a webpage description that is displayed in search engine results.

Google and Yandex publish recommended best practices for how to correctly use meta tags.

Comments

  • index.html
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!-- Add the meta tags here --> <title>The website of a beginning coder</title> <link rel="stylesheet" href="outlines.css"> </head> <body> <header> <h1>The website of a beginning coder</h1> </header> <main> <nav> Navigation </nav> <section> <p>Greetings to everyone! Welcome to my first site. Up until just recently I had no idea what a coder does for a living, but now I have found interactive courses in HTML and CSS and I have set myself the goal of becoming one. I even was assigned an instructor, Muffin, who does not allow me to slack off and will track my progress.</p> <p>My first assignment is to keep a diary and honestly write about all of my accomplishments.</p> </section> <section> Skills section </section> </main> <footer> Website footer </footer> </body> </html>

What didn’t you like in this task?

Thanks! We’ll fix everything at once!

The code has changed, click “Refresh” or turn autorun on.

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%
Goalscompleted
0
    1. Add a meta tag with the following keywords to <head>: layout, HTML, CSS and blog,
    2. then add yet another meta tag to <head> with a short description of the page: A blog about the process of learning web technologies.

    Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

    VISAMastercard

    Log in

    or

    Forgot your password?

    Sign up

    Sign up

    or
    Log in

    Restore access

    Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

    Forgot to connect your email to the profile? Email us and we’ll help.