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, user input, and Twitter handles are shown as follows: "The .exit()
function will return all elements of the Selection because the dataset contains no elements."
A block of code is set as follows:
<html> <head> <title>My App</title> </head> <body> <h1 class="header>My Application</h1> <p class="content"> Lorem ipsum dolor sit amet, ... </p> </body> </html>
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<html> ... <body> <object id="vis" width="50" height="30"> <param name="movie" value="vis.swf"> <embed src="vis.swf" type="application/x-shockwave-flash"> </object> </body> </html>
Any command-line input or output is written as follows:
npm install --save express npm install --save serve-static
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "The t parameter in the range 0 to 1 defines the position on the curve between the starting point P0 (in the figure P1) and the end point P3 (in the figure P2); P1 (in the figure C1) and P2 (in the figure C2) are called control points and are used to model the shape between these points."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.