0% found this document useful (0 votes)
325 views1 page

Learn Basic CSS by Building A Cafe Menu Step 11

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
325 views1 page

Learn Basic CSS by Building A Cafe Menu Step 11

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Search 10,700+ tutorials Menu

Responsive Web Design Learn Basic CSS by Building a Cafe Menu

index.html Console Preview


1 <!DOCTYPE html>
2 <html lang="en"> CAMPER CAFE
3 <head>
4 <meta charset="utf-8" /> Est. 2020
5 <title>Cafe Menu</title>
Coffee
Step 11
You can add style to an element by specifying it in the style
element and setting a property for it like this:

Example Code

element {
property: value;
}

Center the content of the h1 element by setting its text-align


property to the value center .

6 <style>
</style>
7 h1{text-align: center}
8 </style>

Submit and go to next challenge (Command + Enter)

Congratulations, your code passes. Submit your code to


continue.

You might also like