YUI 2.8: Learning the Library
上QQ阅读APP看书,第一时间看更新

Conventions

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: "In a capable, supported browser the library can transform the <textarea> element into the full Rich Text Editor control."

A block of code is set as follows:

<script type="text/javascript" src="http://yui.yahooapis.com/ 2.8.0/build/yahoo-dom-event/yahoo-dom-event.js">
</script>
<script type="text/javascript" src="http://yui.yahooapis.com/ 2.8.0/build/animation/animation-min.js">
</script>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<div id="hd">This is your Header</div>
<div id="bd">This is the body
<div class="yui-b">This is the secondary block</div> <div class="yui-main"> <div class="yui-b">This is the main block</div> </div>
</div>
<div id="ft">This is your footer</div>

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: "The Collapse button will reduce it to the title bar itself".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.