You now know all of the basic elements and set-up you need to structure an HTML page and add different types of content. With the help of CSS, very soon you’ll be creating beautiful websites!
While some tags have a very specific purpose, such as image and video tags, most tags are used to describe the content that they surround, which helps us modify and style our content later. There are seemingly infinite numbers of tags to use (many more than we’ve taught). Knowing when to use each one is based on how you want to describe the content of your HTML. Descriptive, well-chosen tags are one key to high-quality web development. A full list of available HTML tags can be found in Mozilla documentation.
Let’s review what you’ve learned this lesson:
<!DOCTYPE html>declaration should always be the first line of code in your HTML files. This lets the browser know what version of HTML to expect.
<html>element will contain all of your HTML code.
<head>of the page.
<title>element, inside of the head.
<a>) are used to link to internal pages, external pages or content on the same page.
<a>tags and adding
ids to the elements you wish to jump to.
<!-- comment -->.
Take some time to edit the workspace you created and observe how it changes!
Congratulations on completing this lesson!
If you want to review how to use HTML in a project, watch the video below and follow along with one of our experts: