HTML and CSS

Overview

concept map of HTML and CSS
Figure 1: Concept Map

Terms defined: attribute, Cascading Style Sheets (CSS), CSS class, CSS variable, element (in HTML), escape sequence, external style sheet, HyperText Markup Language (HTML), pseudo-element, root element, tag

Introduction

HTML

<h1 align="center">A Centered Heading</h1>

UTF-8 Encoding

<meta charset="utf-8">
<p>&copy; 2024</p>
<!-- is equivalent to -->
<p>© 2024</p>

CSS

:root {
    --extra-space: 5px;
    --page-width: 40em;
}

body {
    font-family: sans-serif;
    max-width: var(--page-width);
    border: 1px solid gray;
    margin: var(--extra-space);
    padding: var(--extra-space);
}

h1.title {
    text-align: center;
}

span.keyword {
    font-weight: bold;
}