JavaScript relies mainly on a Document Object Model (DOM) to interact with the page
contents. The DOM provides an API to create new elements in the page or to navigate and modify the
existing ones.
Because haXe also targets JavaScript, it is quite obvious that in the rest of the book we will not write
JavaScript code directly but always uses haXe.
The script can be embedded directly by writing the code inside a script element or embedding it from
an external resource using the src attribute to point the file. In the second case, any eventual code put
directly inside the script element will be discarded.
< script type=???text/javascript??? src=???/assets/main.js??? > < /script >
Appendix A: Semantic HTML
588
The link element is used to link resources in many fashions. It can be used, as already seen, to reference
one or more style sheet documents, or in conjunction with the type attribute to define the relations
between a collection of documents.
Element
Name Empty?
Frequently Used Attributes
or Attribute Groups Description
style false i18n, type, media,
title
Contains rules to format the current document.
Pages:
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093