OLD | NEW |
1 --- | 1 --- |
2 layout: default | 2 layout: default |
3 title: "Target 3: Add Elements to the DOM" | 3 title: "Add Elements to the DOM" |
4 description: "You have an Element object, now what?" | 4 description: "You have an Element object, now what?" |
5 has-permalinks: true | 5 has-permalinks: true |
6 tutorial: | 6 tutorial: |
7 id: add-elements | 7 id: add-elements |
8 next: remove-elements | 8 next: remove-elements |
9 next-title: "Remove DOM Elements" | 9 next-title: "Remove DOM Elements" |
10 prev: connect-dart-html | 10 prev: connect-dart-html |
11 prev-title: "Connect Dart & HTML" | 11 prev-title: "Connect Dart & HTML" |
12 --- | 12 --- |
13 | 13 |
(...skipping 20 matching lines...) Expand all Loading... |
34 <li> | 34 <li> |
35 <a href="https://github.com/dart-lang/dart-tutorials-samples/tree/master/web
/target03/anagram" | 35 <a href="https://github.com/dart-lang/dart-tutorials-samples/tree/master/web
/target03/anagram" |
36 target="_blank">anagram</a> | 36 target="_blank">anagram</a> |
37 </li> | 37 </li> |
38 </ul> | 38 </ul> |
39 | 39 |
40 {% endcapture %} | 40 {% endcapture %} |
41 | 41 |
42 {% capture content %} | 42 {% capture content %} |
43 | 43 |
| 44 <div class="tute-target-title"> |
| 45 <h1>{{page.title}}</h1> |
| 46 <h3>Dynamically add items to the browser page.</h3> |
| 47 </div> |
| 48 |
44 As you learned in the previous target, | 49 As you learned in the previous target, |
45 the DOM represents the structure | 50 the DOM represents the structure |
46 of a web page document using a simple tree structure. | 51 of a web page document using a simple tree structure. |
47 Each node in the tree represents an item on the page. | 52 Each node in the tree represents an item on the page. |
48 Each node in the tree keeps track of both | 53 Each node in the tree keeps track of both |
49 its parent and its children. | 54 its parent and its children. |
50 In Dart, the | 55 In Dart, the |
51 <a href="http://api.dartlang.org/dart_html/Node.html" target="_blank">Node</a> | 56 <a href="http://api.dartlang.org/dart_html/Node.html" target="_blank">Node</a> |
52 class contains the methods and properties | 57 class contains the methods and properties |
53 that implement a node's tree functionality. | 58 that implement a node's tree functionality. |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 You can find more information about the DOM and CSS in | 384 You can find more information about the DOM and CSS in |
380 <a href="/docs/dart-up-and-running/">Dart Up and Running</a>, | 385 <a href="/docs/dart-up-and-running/">Dart Up and Running</a>, |
381 which also provides thorough coverage of the Dart language, | 386 which also provides thorough coverage of the Dart language, |
382 libraries, and tools. | 387 libraries, and tools. |
383 </li> | 388 </li> |
384 </ul> | 389 </ul> |
385 | 390 |
386 {% endcapture %} | 391 {% endcapture %} |
387 | 392 |
388 {% include tutorial.html %} | 393 {% include tutorial.html %} |
OLD | NEW |