After this exercise, you should be able to:
- Define HTML
- Recognize an HTML tag
- Identify the HTML paragraph tag
HTML, or Hypertext Markup Language, describes a hierarchy of visual elements that a browser can display.
HTML usually looks like human-readable text surrounded by tags. We create tags using angle brackets, like so:
<example-tag>
There was music in the cafes at night, and revolution in the air.
</example-tag>
Most tags require both an opening (<example-tag>
) and a closing tag (</example-tag>
). A forward-slash (/
) proceeds the first angle bracket of all closing tags.
The most common tag is <p>
, short for paragraph.
- Create a new file by clicking on the icon to the right of the
html-css/
directory in your code editor. - Name the new file
index.html
and then click on the checkmark to save the file. - Type
Hello World
. - Surround the
Hello World
text with opening and closing paragraph tags. - Click the Save button to save your changes.
- Click the Run button.
- If your tests pass, click the blue "Preview" tab to see your application.