In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "Then, add the following code and save it as a test localdemo.html
"
A block of code is set as follows:
<!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-1.8.1.min.js"></script> <script type="text/javascript"> </script> </head> <body> </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:
<script type="text/javascript"> function storeItem() { var item = $('#item').val(); var items = localStorage.getItem('myItems'), if (items != null) { items = JSON.parse(items); } else { items = new Array(); } items.push(item); localStorage.setItem('myItems', JSON.stringify(items)); refresh(); } </script>
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Click on the Add to Firefox button."