OLD | NEW |
1 --- | 1 --- |
2 layout: default | 2 layout: default |
3 title: "Embedding Dart in HTML" | 3 title: "Embedding Dart in HTML" |
4 description: "In this article by Sigmund Cherem and Vijay Menon, find out how yo
u'll be able to embed Dart directly on HTML pages." | 4 description: "In this article by Sigmund Cherem and Vijay Menon, find out how yo
u'll be able to embed Dart directly on HTML pages." |
5 has-permalinks: true | 5 has-permalinks: true |
6 --- | 6 --- |
7 <h1> Embedding Dart in HTML </h1> | 7 <h1> Embedding Dart in HTML </h1> |
8 | 8 |
9 <p> | 9 <p> |
10 <em>Written by Sigmund Cherem and Vijay Menon<br> | 10 <em>Written by Sigmund Cherem and Vijay Menon<br> |
(...skipping 15 matching lines...) Expand all Loading... |
26 a semantically equivalent page embedding JavaScript. | 26 a semantically equivalent page embedding JavaScript. |
27 </p> | 27 </p> |
28 </section> | 28 </section> |
29 | 29 |
30 <section> | 30 <section> |
31 <h2> Dart MIME type </h2> | 31 <h2> Dart MIME type </h2> |
32 | 32 |
33 <p> | 33 <p> |
34 HTML <code>script</code> tags provide a | 34 HTML <code>script</code> tags provide a |
35 <code>type</code> attribute to define the language of the script. | 35 <code>type</code> attribute to define the language of the script. |
36 For Dart, this attribute has the value 'application/dart'. | 36 For Dart, this attribute has the value <code>'application/dart'</code>. |
37 </p> | 37 </p> |
38 | 38 |
39 <p> | 39 <p> |
40 Like other script tags, | 40 Like other script tags, |
41 the script contents can be | 41 the script contents can be |
42 inlined as the body of the <code>script</code> tag | 42 inlined as the body of the <code>script</code> tag |
43 or specified by reference via a URL using | 43 or specified by reference via a URL using |
44 the <code>script</code> tag’s <code>src</code> attribute. | 44 the <code>script</code> tag’s <code>src</code> attribute. |
45 </p> | 45 </p> |
46 | 46 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 hello('Hello from Dart'); | 224 hello('Hello from Dart'); |
225 } | 225 } |
226 </script> | 226 </script> |
227 <div id="message"></div> | 227 <div id="message"></div> |
228 </body> | 228 </body> |
229 </html> | 229 </html> |
230 {% endhighlight %} | 230 {% endhighlight %} |
231 </section> | 231 </section> |
232 | 232 |
233 | 233 |
OLD | NEW |