Ad space (banner)
🎨HTML & CSS Lessons
Lesson 17 / 50

The Basics of Meta Tags and SEO

In this lesson you'll learn the basics of SEO using meta tags, so you can build a page that people are more likely to click on in search results. This is for people searching "HTML meta description" or "SEO basics tags."

The <title> and <meta name="description"> tags, written inside <head>, become the "headline" and "description" of your page shown in search results. This is the first basic step in SEO (search engine optimization).

The sample code displays what would normally be written inside <head> — the <title> and <meta name="description"> — as plain text so you can see their content. Note that on a real page, these tags aren't shown on screen — they only appear in the browser tab and in search results.

A common beginner stumbling block is leaving <title> or description empty. If they're not set, search results can show something unrelated to the page's content, or the page may simply be harder for search engines to pick up at all. It's important to set unique wording for each page that reflects its actual content.

The clearer a page's title and description, the more likely it is to be clicked in Google search results. To get a page you've built in front of more people, knowledge of this kind of meta information is just as essential as the design itself.

HTML & CSS
OUTPUT

💡 The preview runs entirely on this page — nothing is sent externally.

Ad space (banner)
Ad space (in-article)