OverviewTeaching: 10 min
Exercises: 0 minQuestions
How are keyboard key combinations written?Objectives
Explain keyboard key combination.
Markdown treats asterisks (*) indicators of emphasis, and renders text marked up like this in italics. We use emphasis
to highlight a word, phrase, or character where it is itself the object of discussion.
We want to output the lines that do not contain the word *the*.
This is preferable instead of the use of quotation marks.
See the “Keyboard Key” section for characters or keyboard keys that the learn should type.
- for words and phrases that are still regarded as unfamiliar.
for titles of books, periodicals, plays, films, TV, radio series, and music albums.
We will use a file that contains three haikus taken from a 1998 competition in *Salon* magazine.
Markdown treats double asterisks (**) as indicators of strong emphasis, and renders text marked up like this in boldface. We use strong emphasis
to highlight a newly introduced term, often one that is going to be defined or explained. For example,
We are all familiar with **graphical user interfaces**
Span of Code
Markdown treats backtick quotes (`) as indicators of a span of code. We use span of code
to highlight part of some code where it is itself the object of discussion.
For example, `range(3, 10, 2)` produces
to highlight one command where it is itself the object of discussion.
you can run it by opening a terminal and typing `bash`.
When the object of discussion is the program or language in a broad sense, we don’t use span of code. For example,
The most popular Unix shell is Bash.
to highlight one function where it is itself the object of discussion.
`len` is much faster than any function we could write ourselves.
to highlight one file name where it is itself the object of discussion.
`my_file.txt` can also be viewed in your GUI file explorer.
to highlight any sequence of character that the user is expected to type.
When making reference to a keyboard key that the reader should press
the HTML tag
<kbd> must be used to enclose the key label.
For example, “to delete the cell press D” should be write as
to delete the cell press <kbd>D</kbd>
The table below covers most of the keyboard key labels.
|Keyboard key||Style Note||Example|
|Function||Capital F followed by the number.||
|Alt||Only first letter capital.||
|Backspace||Only first letter capital.||
|Command||Only first letter capital.||
|Ctrl||Only first letter capital.||
|Delete||Only first letter capital.||
|End||Only first letter capital.||
|Esc||Only first letter capital.||
|Home||Only first letter capital.||
|Insert||Only first letter capital.||
|Page Down||Use “PgDn”.||
|Page Up||Use “PgUp”.||
|Print Screen||Use “PrtScr”.||
|Return||Only first letter capital. We use “Return” instead of “Enter”.||
|Shift||Only first letter capital.||
|Spacebar||Only first letter capital.||
|Tab||Only first letter capital.||
|Down arrow||Use Unicode “Downwards arrow” (8595).||
|Left arrow||Use Unicode “Leftwards arrow” (8592).||
|Right arrow||Use Unicode “Rightwards arrow” (8594).||
|Up arrow||Use Unicode “Upwards arrow” (8593).||
Keyboard Key Combination
When making reference to a keyboard key combination that the reader should press, insert a plus sign without space between each one of the keys. For example, “press Ctrl+X to quit nano” should be written as:
press <kbd>Ctrl</kbd>+<kbd>X</kbd> to quit nano.
Please label links with meaningful texts, in order to improve
accessibility. Please avoid
click here or similar.
Use double quotes for menu and submenu items. For multiple menu and submenu options in a sequence, use the right angle bracket or greater than sign.
“Help” > “Check for updates”
Lesson and episode titles should be written in title case e.g.
Saving the World, One Commit at a Time
An exception should be made where the title includes the name of a tool/library/command that must be typed in lower case when used, e.g.
Data Visualisation with
(In HTML files, such as the workshop schedule and syllabus files in the workshop webpage template, tool/command/library names such as
matplotlib in the example above can be correctly formatted using
Keyboard keys need to use