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.