Most HTML tags come in pairs: an opening tag and a closing tag. For example, this paragraph opens with ‹p› and closes with ‹/p›. ‹/p› is the closing tag. It tells the browser this paragraph is over, please skip a line and start a fresh line, then wait for instruction there.

‹h1›‹/h1› works the same way. ‹/h1› tells the browser the headline is over, skip a line, start a fresh line, then wait for instruction — possibly a ‹p›.

We can use CSS to defiine how content will look within a set of tags . If we use CSS to tell the browser H1s should be lime, the browser will display large lime letters until it sees ‹/h1›. When troubleshooting a CSS-enhanced page, be sure to check your HTML closing tags.

Exceptions: ‹img›, ‹hr›, ‹meta› and ‹br› do not have closing tags. Every other HTML tag you use requires a closing tag.