For example, to create a page header that says “Welcome!”, you would type
Welcome!
into Notepad.For example, to add text that says “I am an iguana”, you would enter
Make sure that you’re continuing to press ↵ Enter after each line of code.
element tag { (for example, p {) modifier: property; (for example, font-size: 20px;) modifier: property; (for example, color: black;) }
Type in body { and press ↵ Enter. Type in background-color: lightblue; and press ↵ Enter. You can use any supported color here, as well as “light” or “dark” modifiers. Type in } and press ↵ Enter.
Text size - Type in font-size: 30px; to set your text as 30-point font. Substitute any number that you want to use. Text color - Type in color: black; to make black text. Substitute any color that you want to use. Text alignment - Type in text-align: center; to center the text. You can also type left or right to align the text appropriately. Font used - Type in font-family: times new roman; to set your font as Times New Roman. You can also use fonts like verdana or georgia.
The modifiers that you can use here are identical to the ones used for the header.
Hi!
For example, if you named your file “My CSS”, you’d type my css. html into the field. If you use a program that can run “. css” files, you can use . css instead of . html here.