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

About You Forum

View Course » View Exercise

367 points
Submitted by
about 4 years ago

11/21 expected body to have its text-align style equal to center but got start

Why does this not work

    <!DOCTYPE html> 
<head> <style>
body {
text align: center;
background: black;
color: white;
<p>Hi! I am learning how to make
my very own web page! I really like
conputers and programming.</p>
<input type="email" placeholder"Email"> 
<input type="submit">
body {
    text-align: center;
    background: black;
    color: white;

0 votes


That is a pretty weird error message, first time I've seen that one!

The problem is that your CSS body selector must be inside your style tag. You seem to have this selector located inside your body tag and again at the very bottom of your code.

Make sure you put the hyphen in text-align: center;

3698 points
Submitted by
about 4 years ago