1.4 HTML Tags

Now we’re going to describe how to implement elements for a web page. To implement an element for a web page, you’ll need to use tags. For example, if you want to implement a strong element (in order to put emphasis on the element’s content and display using boldface), surround the content with <strong> tags. Here’s how to implement a strong element for the word “very”:

Caiden was <strong>very</strong> happy when her tooth finally came out.

The use of tags is the key characteristic of a markup language. Why is it called “markup”? A markup language “marks up” a document by surrounding parts of its content with tags. Web pages are implemented with HTML, which stands for Hypertext Markup Language. You already know what “markup” ...

Get Web Programming with HTML5, CSS, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.