freeCodeCamp/guide/english/certifications/responsive-web-design/basic-html-and-html5/introduction-to-html5-elements/index.md

17 lines
589 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Introduction to HTML5 Elements
---
## Introduction to HTML5 Elements
To wrap an HTML element around other HTML element(s) means to put the <em>inner</em> element(s) after the opening tag of the wrapper and before its closing tag.<br/>
The example below represent a `h1` element and a `h4` element wrapped into a `header` element:
```
<header>
<h1> Big title </h1>
<h4> Tiny subtitle </h4>
</header>
```
As you can see the `header` contains the other elements that ends up on the same level ( the `h1` ends before the `h4` starts and both are nested into the `header`).