Glossary
Closing tag

Closing tag

In HTML, a closing tag is an instructional piece of code that ends a section of page content. It’s nearly the same as an opening tag (e.g., "<p>") but it has a forward slash (e.g., "</p>") to let browsers know where to start and end different elements. Without tags, the code might alter formatting or cause HTTP links to run into each other. 

Here’s a syntax example with an opening and closing tag: 

<p>This is a paragraph in HTML.</p>

Some tags serve both as opening and closing tags. These are called self-closing tags, which you can use for shorter elements such as horizontal rule breaks, line breaks, and images. 

Here are some examples of self-closing tag syntax:

  • <img/> 
  • <br/> 
  • <hr/>

HTML tags give you more control over your web designs, including nesting elements. You can include an <img/> within a <p> and </p>, for example. In Webflow, you can input custom HTML code like semantic tags to adjust elements to your liking.

Other glossary terms

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Hmm…we couldn’t find any results. Try a different search term or reset the filter.
Reset the filter
Load more