CSS test 2: the code blocks of this site
| Commands and output | |
| Code | |
| Paths and inline code | |
| Tables and lists | |
| Warnings |
This page shows each kind of text block of this site once. After a change to the stylesheets, open it and check that every block still looks right, in a light and a dark browser theme and on a phone. Shapes drawn with CSS are in CSS test: shapes and line numbers.
Commands and output
A command the reader types, one per block:
ls -l /var/www
Its output:
total 8 drwxr-xr-x 2 root root 4096 Oct 26 09:10 html drwxr-xr-x 3 root root 4096 Oct 26 09:10 example.com
Code
A configuration snippet:
server { listen 80; server_name example.com; root /var/www/example.com/html; }
Paths and inline code
A path on its own line:
/etc/nginx/nginx.conf
Inline code inside a sentence: run nginx -t before systemctl reload nginx.
Tables and lists
| Block | Class |
|---|---|
| Command | cmd1 |
| Output | cout1 |
| Code | somecode |
| Path | path |
- A list item.
- A second list item with inline code.
Warnings
WARNING: a message that a program printed as a warning.
Article authors: Andrei Olegovich, Klavdiya Kondakova