Foundations · lesson 1 of 16
Elements and tags
Listen to this lesson
An element is an opening tag, some content and a closing tag: <p>Hello</p>. The tag name says what the content is, not how it looks.
A few elements are empty and have no closing tag, like <br>, <img> and <input>.
Watch the DOM tree on the right while you type: every tag you write becomes a node.