2025-05-31
Web sites consist of three components:
HTML: Content of the site
CSS: Appearance of the site
JavaScript: Interactivity
We won’t be discussing JavaScript here
<div>: Contents stacked vertically
<span>: Contents placed inline
Rendered output:
<div> elements are stacked vertically from top to bottom
Rendered output:
This is an example
<span> elements are placed inline
HTML input:
Rendered output:
This is an example
Top and bottom padding don’t affect the height of an inline element
HTML input:
Rendered output:
This is red, green, and blue text.
The CSS selector span.red is more specific than .red and therefore takes priority
<img> tag: imagesRendered output:

<img> tag: imagesRendered output:

<a> tag: linksHTML input:
Rendered output:
My book on data visualization: Fundamentals of Data Visualization
<br> tag: line breaksHTML input:
Rendered output:
My book on data visualization:
  Fundamentals of Data Visualization
<ul> and <li> tags: unordered lists<ol> and <li> tags: unordered lists
Quarto Guide: https://quarto.org/docs/guide













Any webhosting service
For details and more options, see: https://quarto.org/docs/publishing/