Internal style sample |
|
The two paragraphs have a lime background color and navy color for the text. The style element within the head element looks like this: <head> <!-- other stuff omitted; just the style element is shown --> <style> p { background-color: lime; color: navy; } </style> </head>Within the style element, I put p which is the name of the paragraph tag.After the p I put braces { } to contain the properties and their values;Each property is followed by a colon, then the value, then a semicolon. The property background-color then the colon then the value lime
then the semicolon.The property color then the colon then the value navy
then the semicolon.Notice I indented and spaced everything neatly, to make it easier to read. This is important in HTML, but even more important in styles. |
This is the first paragraph. This is the second paragraph. |