Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.


text tags: <p> and <br>

observe that newlines do not matter in HTML source code, usually they are treated as spaces

Loading...

grouping: <div> and <span>


<div> and <span> example

Loading...

second example of <div>

Loading...

there is also <section>

the <section> tag also provides grouping capabilities, but with a more semantic meaning
for example your CV will probably end up with e.g. 5 sections (header, education, experience, skills, languages)
however if your layout is sophisticated enough, you will probably end up with more than 5 divs, that are just there for layout purposes


lists: <ul> <li> and <ol>

Loading...

code-like: <pre> and <code>

Loading...

the anchor tag <a> serves two purposes :

typical hyperlink reads like this

Loading...

name anchor <a name="some-name">

if you need a hyperlink to point, not at the beginning of this page, but somewhere in the middle, then create an anchor at that location

URL to an anchor

local URL

here’s an example of a page that has a named anchor (below the gray area) and a hyperlink to that location

Loading...

<table>, <tr>, <th>, <td>...

use the <table> tag in to display tabular data (think, e.g. a spreadsheet)

Loading...

legacy tags

header tags <h1> .. <h5>

Loading...

styling tags: <b>, <i>, <u>, <s>

for the record only (these dates back to the old days when HTML was mimicking a word processor...)

Loading...