Headline with the h2 Element
Over the next few lessons, we'll build an HTML5 cat photo web app piece-by-piece.
The h2
element you will be adding in this step will add a level two heading to the web page.
This element tells the browser about the structure of your website. h1
elements are often used for main headings, while h2
elements are generally used for subheadings. There are also h3
, h4
, h5
and h6
elements to indicate different levels of subheadings.
Add an h2
tag that says "CatPhotoApp" to create a second HTML element below your "Hello World" h1
element.
Tests
- Waiting: 1. You should create an
h2
element. - Waiting: 2. Your
h2
element should have a closing tag. - Waiting: 3. Your
h2
element should have the textCatPhotoApp
. - Waiting: 4. Your
h1
element should have the textHello World
. - Waiting: 5. Your
h1
element should be before yourh2
element.
/** * Your test output will go here */