Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, and user input are shown as follows: "To make our map's div
element focusable, we must add a tabindex
property to it in the HTML file." Key combinations are also distinguished from regular text: "F12 in modern ones, or CTRL + J, if F12 does not work".
A block of code is set as follows:
<!DOCTYPE html> <html lang="en"> <head> <title>Chapter 1 - Creating a simple map</title> <link href="../../js/ol3-3.11.0/ol.css" rel="stylesheet"> <link href="ch01.css" rel="stylesheet">
Any command-line input or output is written as follows:
node tasks/build.js config/ol.json ol.js node tasks/build.js config/ol-debug.json ol-debug.js
Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "From the available shortcuts, we will need the command prompt (Node.js command prompt) as we will need to start various JavaScript programs."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.