This forum is now read-only. Please use our new forums at discuss.codecademy.com.

About You Forum

View Course » View Exercise

182 points
Fd6a5db6e52d69200b87669aa68b330e?s=140&d=retro
Submitted by
Walter García Ortiz
almost 3 years ago

8/21 sorry, I don't know what to do

Here's my actual code and I don't know what to do next, I hope you can help me

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

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


    <h3> I'm just a small town boy </h3>

    <style>body {
        text-align: center;
    }
    <p> Wilbert loves Joseph too </p>


    <input type="submit">
    <input type="email" placeholder="Email">
</body> 

The error message says: In your style tag, set the body's "text-align" property to "center".
Thank you!


1 vote

permalink

Hi Walter,

There are a couple of things to look at there.

In your <style> ... </style> element you have duplicate code for your body's CSS rule. You only need to say body { text-align: center; } once.

In your <body> ... </body> element you should not put any CSS rules. In these exercises, all CSS rules belong in the style element. You should remove this {text-align: center; } and this <style>body { text-align: center; } from your body element.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 3 years ago

1 Comment

543fc82f631fe988640020d7_382532424 Tobias Páez almost 3 years ago

Hello dear AlbionsRefuge, how can i add color to my commnts?, i searched the menu down but there's no that options, thanks for your hint


0 votes

permalink

Hello / Hola Walter,
I'm so sorry to inform you that your code is wrong, try the next:
<style>
body {text-align: center;}
</style>
<!-- I'm a comment. You won't actually see me on the web page.

You should write your header in the line below me! -->

<body>
<h1>Tobias</h1>

<p>Hi! I am learning how to make
my very own web page! I really like
coffee, cook international dishes, take pictures, practice karate and long walks on
the beach.</p>
<input type="email" placeholder="Your email">
<input type="submit" value="Submit">
</body>

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
almost 3 years ago