HTML and CSS

Overview

concept map of HTML and CSS
Figure 1: Figure 1: Concept Map

Introduction

HTML

Table 1: Table 1: HTML Escape Characters
Name Escape Sequence Character
less than &lt; <
greater than &gt; >
ampersand &amp; &
copyright &copy; ©
plus/minus &plusmn; ±
micro &micro; µ
Table 2: Table 2: HTML Tags
HTML Tag Used For
div section in a document
h1 level-1 heading
h2 level-2 heading, etc.
p paragraph
span inline text
a hyperlink
img reference to image
ul unordered list
ol ordered (numbered) list
li list element
table table
tr table row
th table heading
td table data cell
<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;
}