-
Step 1
Define your object. Use either a simple definition (Ex: h1 for a headline) or a class. Classing an element in CSS involves giving it properties defined in CSS selector commands, for example, if A is your element: A {color: red}
-
Step 2
Now, if A is some element you want to make into a block element, you can use another CSS command to render it that way using the display command. For A, the command would look like this: A {display: block}
-
Step 3
Consider also using other display styles that make a block element, such as 'list-item', 'compact' and 'run-in'. (Both 'compact' and 'run-in' support multiple display styles).
-
Step 4
Manifest your element by using open and close tags in CSS and putting text or other code inside.
-
Step 5
Do a page view to see if CSS made your element into a block element. If it appears on its own line and positioned as you intended, you're successful.
-
Step 6
To check your syntax further, go to the W3 site and use their validator tool. Simply upload your page code and the CSS validator will show you any errors.









