Conventions Used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and so forth. Here is an example: "Open the ch01_01_demo.html file in your editor."

A block of code is set as follows:

<html>
<head>
<title>Real-Time 3D Graphics with WebGL 2</title>

<style type="text/css">
canvas {
border: 5px dotted blue;
}
</style>
</head>
<body>

<canvas id="webgl-canvas" width="800" height="600">
Your browser does not support the HTML5 canvas element.
</canvas>

</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:

<canvas id="webgl-canvas" width="800" height="600">
Your browser does not support the HTML5 canvas element.
</canvas>

Any command-line input or output is written as follows:

$ mkdir webgl-demo
$ cd webgl-demo

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select System info from the Administration panel."



Warnings or important notes appear like this.


Tips and tricks appear like this.