freeCodeCamp/guide/english/miscellaneous/html-elements/index.md

14 lines
550 B
Markdown

---
title: HTML Elements
---
Most HTML elements have an opening tag and a closing tag.
Opening tags look like this: `<h1>` and Closing tags look like this: `</h1>`.
Note that the only difference between opening and closing tags is that closing tags have a slash after their opening angle bracket.
There are also some HTML elements that are self-closing.
For example, the image tag `<img />` and the input tag `<input />`.
<a href='http://www.freecodecamp.com/challenges/say-hello-to-html-elements' target='_blank' rel='nofollow'>Try it here!</a>