Implementation: CSSInternal style

Cascading Style Sheets (CSS) are used to apply styles to a webpage (internal) or website (external). Understanding the properties of text and backgrounds provides fundamental knowledge of CSS and how to apply styles using selectors, classes and IDs.

Part ofComputing ScienceRevise: Web design and development

Internal style

To apply a rule to a single page, an internal style is used. You define internal styles in the head section of an HTML page, inside the <style>…</style> tags, like this:

<head>
<style>
body {
background-color: light-cyan;
}
h1 {
color: purple; margin-left: 40px;
}
</style>
</head>

These internal styles would apply to one single page only.