Trong số các tính năng của các đối tượng cửa sổ như sau: • Tạo các hộp thoại cảnh báo • Tạo các hộp thoại xác nhận • Tạo các hộp thoại nhắc nhở người dùng nhập thông tin • Mở trang ở cửa sổ mới • Xác định kích thước cửa sổ • Kiểm soát di chuyển của các tài liệu hiển thị trong cửa sổ | 366 Part 7 Task Controlling Spacing with CSS As browser support for cascading style sheets has improved so too has the ability of Web designers to control all aspects of their pages appearance through Dynamic HTML. notes Dynamic HTML is the combination of JavaScript cascading style sheets and the Domain Object Model which together make it possible to build sophisticated interactive user interfaces and applications that run in the browser. You only need to specify these style attributes to enforce them. For instance if you don t want extra letter spacing you can normally leave out letter-spacing. One of the aspects of the appearance of your pages that can be controlled through style sheets is the spacing used for text. For instance you can control the following Use the letter-spacing style attribute to control the spacing of letters. You can specify spacing in pixels such as 10px or as some fraction of the width of the letter m in the font you are using such as div style letter-spacing 20px Text goes here div Use the word-spacing style attribute to control the spacing between words in pixels or em units The following text has larger word spacing span D style word-spacing This has bigger word D spacing span The following task illustrates these attributes by displaying text with a variety of spacing set 1. Create a new HTML document in your preferred editor. 2. In the body of your document create a layer containing text. Set the letter spacing using pixels div style letter-spacing 10px These letters are 10 D pixels apart div 3. Create another layer and set the letter spacing as a fraction of the width of the letter m div style letter-spacing 2em These letters are D 2 m s apart div 4. Create another layer and set the word spacing using pixels div style word-spacing 30px These words are 30 D pixels apart div DHTML and Style Sheets 367 5. Create another layer and set the word spacing as a fraction of the width of the letter m. The final page should look like