Ajax-loader-large-white
About You
Center your Heading

Alright, there's the style framework. Now let's take it out for a spin!

We're going to add the following lines to the <style> tags!

h1 { 
    text-align: center; 
}

This is CSS! Isn't it majestic? Let's dive a little deeper.

  1. The h1 is the selector. You are selecting the element(s) to which we add style. Every single <h1> tag will share this style.
  2. Everything inside the curly brackets will be used to style the elements we selected.
  3. We are changing the text-align property. Each property controls one aspect of the style.
  4. Finally, we set a text-align value of center. Every property has a few values it can be set to. In this case, you could alternatively use left, right, or justify.
Instructions

Inside your <style></style> tags, add the following:

h1 {
    text-align: center;
}
?
Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

Your new <style></style> tags should instead look like:

<style>
    h1 {
        text-align: center;
    }
</style>

<h1>Your Name</h1>
<!-- The rest of your page goes here... -->
index.html
project
View Preview