o ;; m=new String (n);
«n.toString ()»,,. , Alert ( + apples + ), apples.
. ,. ,, 30,:
var students=new Array (); [0]= Sam raquo ;; [1]= Joe raquo ;; [2]= Sue raquo ;; [3]= Beth raquo ;;
,,,.. ,.:
var students=[ Sam raquo ;, Joe raquo ;, Sue raquo ;, Beth ];
,,,. ([]),. «Var students=[];», «var students=new Array ();».
,. , (0-3).. , «Alert (students [2]);». JavaScript 0, 1. students [0], - students [1], - students [99], .., JavaScript. 1.
,,,.
var students=[ Sam raquo ;, Joe raquo ;, Sue raquo ;, Beth ]; suffixes=[ 1st raquo ;, 2nd raquo ;, 3rd , 4th ]; (var i=0; i lt; students.length; i ++) {(suffixes [i] + - + students [i]);
}
,,,. ,,,,. (, Excel),.
.. , Students:
var spreadsheet=[
[ A1 raquo ;, B1 raquo ;, C1 raquo ;, D1 ],
[ A2 raquo ;, B2 raquo ;, C2 raquo ;, D2 ],
[ A3 raquo ;, B3 raquo ;, C3 raquo ;, D3 ],
[ A4 raquo ;, B4 raquo ;, C4 raquo ;, D4 ]
];
JavaScript.. [16]
CSS
CSS (. Cascading Style Sheets -) -,.
, -, HTML XHTML, XML-,, SVG XUL.-,, -. CSS - (HTML) - (CSS). ,,. , CSS,,, (),, [17].
CSS.
CSS CSS, CSS.-,,, CSS. (, CSS -. .css, CSS.)
,, -:
·, - lt; link gt ;, lt; head gt; lt;/head gt ;. ( Lt; link gt; href,). ;
lt; head gt;
.
lt; link rel=«stylesheet» type=«text/css» href=«style.css»/ gt;
lt;/head gt;
·, -import, lt; style gt; lt;/style gt; (,, Lt; head gt; lt;/head gt;) lt; style gt ;, (, url). ;
lt; head gt;
.
lt; style type=«text/css» media=«all» gt;
@ import url (style.css);
lt;/style gt;
lt;/head gt;
·, lt; style gt; lt;/style gt; (,, Lt; head gt; lt;/head gt;). ;
lt; head gt;
.
lt; style type=«text/css» gt; {: red;
}
lt;/style gt;
lt;/head gt;
·, - (style)..
lt; p style=«font-size: 21px; color: green; » gt; , Lt;/p gt;
,, -.
CSS XML-,.:
lt ;? xml-stylesheet type=«text/css» href=«style.css»? gt;
.
, HTML-,. HTML,, -, -,.
,,. , -.
, p, b. b p, body. , P body. , P, - body.
CSS,,, (. «»).
CSS.
CSS (.) CSS -. ,,,.. ,,,, «;». CSS, »:«...
, {
:;
:;
:;
}
CSS (.) CSS (style,) («CSS:»), «;».
.
CSS:
·;
* {margin: 0; padding: 0;}
·;
p {font-family: Garamond, serif;}
·;
note {color: red; background: yellow; font-weight: bold;}
·;
# paragraph1 {margin: 0;}
·;
a [href=«# justify gt; · ();
div # paragraph1 p.note {color: red;}
·;
p.note gt; b {color: green;}
·;
h1 + p {font-size: 24pt;}
·;
a: active {color: yellow;}
·.
p: first-letter {font-size: 32px;}
· CSS,,. , * {Color: red;}. ,,,, .first {} * .first {}.
..
- () HTML class id ():
lt; div id=«first» gt; lt;/div gt;
l...