1. Make eye contact. Take advantage of those brief moments when your newborn's eyes are open, and look right into them. Infants recognize faces early on -- and yours is the most important! Each time he stares at you, he's building his memory.
2. Stick out your tongue. Studies show that newborns as young as 2 days old can imitate simple facial movements -- it's a sign of very early problem solving.
3. Let him reflect. Have your baby stare at himself in the mirror. At first, he may think he's just eyeing another cute kid, but he'll love making the "other" baby wave his arms and smile.
4. Make a difference. Hold up two pictures about 8 to 12 inches away from your baby's face. They should be similar but have one small difference (perhaps a tree is in one but not the other). Even a young infant will look back and forth and figure out the distinguishing features, which sets the stage for letter recognition and reading later on.
5. Blab away. All you may get is a blank look, but leave short pauses where your baby would speak. Soon she'll catch on to the rhythm of conversation and start filling in the blanks.
6. Go gaga. Your baby really tunes in to your silly cooing and high-pitched baby talk.
7. Sing a song. Learn as many tunes as you can, or make up your own verses ("This is the way we change your diaper, change your diaper, change your diaper . . . "). Play Bach, the Beatles, or Britney Spears. Some research suggests that learning the rhythms of music is linked to learning math.
8. Clue him in. When you announce, "I'm going to turn on the light now" before flipping the switch, you're teaching cause and effect.
9. Tickle her toes. In fact, tickle her all over. Laughter is the first step in developing a sense of humor. And playing games like "This little piggy" (finish by tickling her under the chin) or "I'm gonna get you" teaches your child to anticipate events.
10. Be a funny face. Puff up your cheeks, and have your toddler touch your nose. When she does, poof! Have her pull your ear, and then stick out your tongue. Make a funny noise when she pats your head. Keep to the same routine three or four times, then change the rules to keep her guessing.
11. Joke around. Point to a photo of Uncle Frank, and call him "Mommy." Then tell your child that you were being silly and laugh at your "joke" to build her budding sense of humor.
Bond Every Chance You Get
12. Breast-feed, if possible. And do it for as long as you can. It's a fact that schoolkids who were breast-fed as infants have higher IQs. Plus, nursing is a great time to bond with your infant by singing, talking, or simply stroking that delicious baby hair.
13. Make the most of diaper time. Use moments on the changing pad to teach body parts or pieces of clothing. Narrate to help your baby learn to anticipate routines.
14. Turn off the tube. Your baby's brain needs one-on-one interaction that no TV show, no matter how educational, can provide.
15. Don't forget to give it a rest. Spend a few minutes each day simply sitting on the floor with your baby -- no music, bright lights, or playful tricks. Let him explore, and see where he takes you.
Get Physical
16. Be a playground. Lie down on the floor, and let your baby climb and crawl all over you. It's cheaper than a jungle gym and lots more fun! You'll help boost her coordination and problem-solving skills.
17. Build an obstacle course. Boost motor skills by placing sofa cushions, pillows, boxes, or toys on the floor and then showing your baby how to crawl over, under, and around the items.
18. Shake it up, baby. Teach her to twist and shout, do the funky chicken, or twirl like a ballerina.
19. Play "follow the leader." Crawl through the house, varying your speed. Stop at interesting places to play.
20. Now follow his lead. As your toddler gets older, he'll stretch his creativity to see if you really will do everything he does, like make silly noises, crawl backward, or laugh.
Explore New Surroundings
21. Share the view. Take your baby on walks in a front carrier, sling, or backpack, and narrate what you see -- "That's a little dog" or "Look at those big trees!" or "Did you hear that fire engine?" -- to give your baby endless vocabulary-building opportunities.
22. Go shopping. When you need a break from your song and dance, visit the supermarket. The faces, sounds, and colors there provide perfect baby entertainment.
23. Change the scenery. Switch your toddler's high chair to the other side of the table. You'll challenge his memory of where things are placed at meals.
Play and Be Silly
24. Surprise her. Every now and then, delight your baby by gently blowing on her face, arms, or tummy. Make a pattern out of your breaths, and watch her react and anticipate.
25. Practice three-card monte. Grab a few empty plastic food containers, and hide one of your baby's small toys under one. Shuffle the containers, and let him find the prize.
26. Play peekaboo. Your hide-and-seek antics do more than bring on the giggles. Your baby learns that objects can disappear and then come back.
27. Pick it up. Even if it seems like your baby repeatedly drops toys off her high chair just to drive you nuts, go fetch. She's learning and testing the laws of gravity. Give her several pieces of wadded-up paper or some tennis balls, put an open bucket under her seat, and let her take aim!
Property Description Possible Values Examples backgroundattachment Declares the attachment of a background image (to scroll with the page content or be in a fixed position). fixed scroll div { backgrounda ttachment:fixed; } div { backgrounda ttachment:scroll; } backgroundcolor Declares the background color. Valid color names, RGB values, hexidecimal notation. div { backgroundc olor:green; } div { color:#00FF0 0; } backgroundimage Declares the background image of an element. URL values. div { backgroundi mage:url(images/im g.jpg); } body { backgroundimage: url(img.jp g); } backgroundposition Declares the position of a background image. Lengths or percentages for the x and y positions, or one of the predefined values: top left top center top right center left center center center right bottom left bottom center bottom right div { backgroundp osition:10px 50px; } div { backgroundp osition:bottom rig ht; } backgroundrepeat Declares how and/or if a background image repeats. repeat repeatx repeaty norepeat div { backgroundr epeat:repeatx; } div { backgroundr epeat:norepeat; } background Used as a shorthand property to set all the background properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): backgroundcolor backgroundimage backgroundrepeat backgroundattachment backgroundposition div { background:g reen url(image.jp g) norepeat fixed center center; } div { background:u rl(image.jpg) fixe d; } Border Properties Property Description Possible Values Examples bordertopcolor Declares the color of the top border. Valid color names, RGB values, hexidecimal notation, or the predefined value transparent. div { b ordert opcolo r:gree n; } div { b ordert opcolo r:#00FF 00; } bordertopstyle Declares the style of the top border. none hidden dotted dashed solid double groove ridge inset outset div { b ordert opstyl e:soli d; } div { b ordert opstyl e:inse t; } bordertopwidth Declares the width of the top border. Lengths or the following predefined values: thin medium thick div { b ordert opwidt h:2px; } div { b ordert opwidt h:thin; } bordertop Used as a shorthand property to set all the bordertop properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): bordertopwidth bordertopstyle bordertopcolor div { b ordert op:2px solid g reen; } div { b ordert op:thic k doubl e #00FF 00; } borderrightcolor Declares the color of the right border. Valid color names, RGB values, hexidecimal notation, or the predefined value transparent. div { b orderr ightco lor:gre en; } div { b orderr ightco lor:#00 FF00; } borderrightstyle Declares the style of the right border. none hidden dotted dashed solid double groove ridge inset outset div { b orderr ightst yle:sol id; } div { b orderr ightst yle:ins et; } borderrightwidth Declares the width of the right border. Lengths or the following predefined values: thin medium thick div { b orderr ightwi dth:2p x; } div { b orderr ightwi dth:thi n; } borderright Used as a shorthand property to set all the borderright properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): borderrightwidth borderrightstyle borderrightcolor div { b orderr ight:2p x solid green; } div { b orderr ight:th ick dou ble #00 FF00; } borderbottomcolor Declares the color of the bottom border. Valid color names, RGB values, hexidecimal notation, or the predefined value transparent. div { b orderb ottomc olor:gr een; } div { b orderb ottomc olor:#0 0FF00; } borderbottomstyle Declares the style of the bottom border. none hidden dotted dashed solid double groove ridge inset div { b orderb ottoms tyle:so lid; } div { b orderb ottoms outset tyle:in set; } borderbottomwidth Declares the width of the bottom border. Lengths or the following predefined values: thin medium thick div { b orderb ottomw idth:2p x; } div { b orderb ottomw idth:th in; } borderbottom Used as a shorthand property to set all the borderbottom properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): borderbottomwidth borderbottomstyle borderbottomcolor div { b orderb ottom:2 px soli d gree n; } div { b orderb ottom:t hick do uble #0 0FF00; } borderleftcolor Declares the color of the left border. Valid color names, RGB values, hexidecimal notation, or the predefined value transparent. div { b orderl eftcol or:gree n; } div { b orderl eftcol or:#00F F00; } borderleftstyle Declares the style of the left border. none hidden dotted dashed solid double groove ridge inset outset div { b orderl eftsty le:soli d; } div { b orderl eftsty le:inse t; } borderleftwidth Declares the width of the left border. Lengths or the following predefined values: thin medium thick div { b orderl eftwid th:2px; } div { b orderl eftwid th:thi n; } borderleft Used as a shorthand property to set all the borderleft properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): borderleftwidth borderleftstyle borderleftcolor div { b orderl eft:2px solid g reen; } div { b orderl eft:thi ck doub le #00F F00; } bordercolor Declares the border color of all four borders at once. Valid color names, RGB values, hexidecimal notation, or the predefined value transparent. Separate the color for each border by a space, declaring the colors for the borders in the following order: bordertopcolor borderrightcolor borderbottomcolor borderleftcolor Undeclared values work as further shorthand notation. If only one color value is declared, all four borders will use that color. If two colors are declared, the top and bottom borders will use the first color while the right and left borders will use the second color. If three colors are declared, the top border will use the first color, the right and left borders will use the second color, and the bottom border will use the third color. div { b orderc olor:gr een red blue ol ive; } div { b orderc olor:gr een; } div { b orderc olor:gr een re d; } div { b orderc olor:gr een red blue; } borderstyle Declares the border style of all four borders at once. none hidden dotted dashed solid double groove ridge inset outset Undeclared values work as further shorthand notation. If only one style value is declared, all four borders will use that style. If two styles are declared, the top and bottom borders will use the first style while the right and left borders will use the second style. If three styles are declared, the top border will use the first style, the right and left borders will use the second style, and the bottom border will use the third style. div { b orders tyle:so lid dot ted das hed dou ble; } div { b orders tyle:so lid; } div { b orders tyle:so lid dot ted; } div { b orders tyle:so lid dot ted das hed; } borderwidth Declares the width of all four borders at once. Lengths or the following predefined values: thin medium thick Undeclared values work as further shorthand notation. If only one width value is declared, all four borders will use that width. If two widths are declared, the top and bottom borders will use the first width while the right and left borders will use the second width. If three widths are declared, the top border will use the first width, the right and left borders will use the second width, and the bottom border will use the third width. div { b orderw idth:1p x 3px 5 px 2px; } div { b orderw idth:th in; } div { b orderw idth:2p x 4px; } div { b orderw idth:2p x 4px 5 px; } border Used as a shorthand to declare the border properties when all four borders will have the same appearance. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): borderwidth borderstyle bordercolor div { b order:1 px doub le gree n; } div { b order:t hin sol id #00F F00; } Classification and Positioning Properties Property Description Possible Values Examples clear Declares the side(s) of an element where no previous floating elements are allowed to be adjacent. left right both none div { cle ar:right; } div { cle ar:both; } cursor Declares the type of cursor to be displayed. URL values, and the following prefefined values: auto div { cur sor:cross hair; } crosshair default pointer move eresize neresize nwresize nresize seresize swresize sresize wresize text wait help div { cus rsor:ur l(image.c sr); } div { cus rsor:ur l(image.c sr), poin ter; } display Declares if/how the element displays. none inline block listitem runin compact marker table inlinetable tablerowgroup tableheadergroup tablefootergroup tablerow tablecolumngroup tablecolumn tablecell tablecaption div { dis play:non e; } div { dis play:inli ne; } div { dis play:mark er; } float Declares whether a box should float to the left or right of other content, or whether it should not be floated at all. left right none div { flo at:left; } div { flo at:right; } visibility Declares the visibility of boxes generated by an element. visible hidden collapse div { vis ibility:v isible; } div { vis ibility:h idden; } top Declares the distance that the top content edge of the element is offset below the top edge of its containing block. The positionproperty of the element must also be set to a value other thanstatic. Lengths, percentages, and the predefined valueauto. div { to p:15px; } div { to p:2%; } right Declares the distance that the right content edge of the element is offset to the left of the right edge of its containing block. Theposition property of the element must also be set to a value other than static. Lengths, percentages, and the predefined valueauto. div { rig ht:15px; } div { rig ht:2%; } bottom Declares the distance that the bottom content edge of the element is offset above the bottom edge of its containing block. Theposition property of the element must also be set to a value other than static. Lengths, percentages, and the predefined valueauto. div { bot tom:15px; } div { bot tom:2%; } left Declares the distance that the left content edge of the element is offset to the right of the left edge of its containing block. Theposition property of the element must also be set to a value other than static. Lengths, percentages, and the predefined valueauto. div { lef t:15px; } div { lef t:2%; } position Declares the type of positioning of an element. static relative absolute fixed div { pos ition:abs olute; } div { pos ition:rel ative; } clip Declares the shape of a clipped region when the value of theoverflow property is set to a value other than visible. Shapes, or the predefined valueauto. In CSS 2, the only valid shape is a rectangle, using the following format to specify the offset lengths from each side of the box: rect(top, right, botto m, left) div { cli p:auto; } div { cli p:rect(2p x, 4px, 7 px, 5px); } overflow Declares how content that overflows the element's box is handled. visible hidden scroll auto div { ove rflow:hid den; } div { ove rflow:scr oll; } verticalalign Declares the vertical alignment of an inlinelevel element or a table cell. Lengths, percentages, and the following predefined values: baseline sub super top texttop middle bottom textbottom span { ve rticalal ign:middl e; } td { vert icalalig n:top; } zindex Declares the stack order of the element. Integer values and the predefined valueauto. div { zi ndex:2; } div { zi ndex:aut o; } Dimension Properties Property Description Possible Values Examples height Declares the height of the element. Lengths, percentages, and the predefined value auto. div { height:200p x; } div { height:50%; } maxheight Declares the maximum height of the element. Lengths, percentages, and the predefined value auto. div { maxheigh t:200px; } div { maxheigh t:50%; } minheight Declares the minimum height of the element. Lengths, percentages, and the predefined value auto. div { minheigh t:200px; } div { minheigh t:50%; } width Declares the width of the element. Lengths, percentages, and the predefined value auto. div { width:500p x; } div { width:75%; } maxwidth Declares the maximum width of the element. Lengths, percentages, and the predefined value auto. div { maxwidth: 5 00px; } div { maxwidth: 7 5%; } minwidth Declares the minimum width of the element. Lengths, percentages, and the predefined value auto. div { minwidth: 5 00px; } div { minwidth: 7 5%; } Font Properties Property Description Possible Values Examples fontfamily Declares the name of the font to be used. Previously set in HTML via theface attribute in a <font> tag. Valid font family names or generic family names, i.e. Arial,Verdana, sansserif, "Times New Roman", Times, serif, etc. Font family names can be separated by a comma in the same declaration to allow additional and/or generic family names to be used if the prefereed font is unable to be displayed. div { fontf amily:Arial; } div { fontf amily:Arial, Helvetica, s ansserif; } fontsize Declares the size of the font. Previously set in HTML via the sizeattribute in a <font> tag. Lengths (number and unit type— i.e. 1em, 12pt, 10px, 80%) or one of the following predefined values: xxsmall div { fonts ize:70%; } div { fonts ize:0.85em; xsmall small medium large xlarge xxlarge smaller larger } div { fonts ize:medium; } fontsizeadjust Limited browser support: Was part of CSS 2, but not in CSS 2.1. This property may return in CSS 3. Declares theaspect value (font size divided by xheight). Numeric value div { fonts izeadjus t:0.54; } div { fonts izeadjus t:0.46; } fontstretch Limited browser support: Was part of CSS 2, but not in CSS 2.1. This property may return in CSS 3. Declares the stretch of the font face. normal wider narrower ultracondensed extracondensed condensed semicondensed semiexpanded expanded extraexpanded ultraexpanded div { fonts tretch:narro wer; } div { fonts tretch:ultr aexpanded; } fontstyle Declares the font style. normal italic oblique div { fonts tyle:italic; } div { fonts tyle:obliqu e; } fontvariant Declares the font variant. normal smallcaps div { fontv ariant:norma l; } div { fontv ariant:smal lcaps; } fontweight Declares the font weight (lightness or boldness) normal bold bolder lighter 100 200 300 400 500 600 700 800 900 div { fontw eight:bolde r; } div { fontw eight:200; } font Used as a shorthand property to declare all of the font properties at once (except fontsizeadjust and fontstretch). Separate values by a space in the following order (those that are not defined will use inherited or default initial values): fontstyle fontvariant fontweight fontsize lineheight fontfamily div { font:i talic smallcaps bold 1e m 1.2em Aria l } div { font:b old 0.8em Ve rdana } Generated Content Properties Property Description Possible Values Examples content Generates content in the document in conjunction with the :before and :afterpseudoelements. String values, URL values, and predefined value formats: counter(name) counter(name, lis tstyletype) counters(name, st ring) counters(name, st ring, liststyletype) attr(X) openquote closequote noopenquote noclosequote div:before { con tent:"some tex t"; } div:after { cont ent:url(page2.ht ml); } counterincrement Declares the counter increment for each instance of a selector. Integers and the predefined valuenone. More Information counterreset Declares the value the counter is set to on each instance of a selector. Integers and the predefined valuenone. More Information quotes Declares the type of quotation marks to use for quotations and embedded quotations. String values and the predefined valuenone. More Information List Properties Property Description Possible Values Examples liststyletype Declares the type of list marker used. disc circle square decimal decimalleadingzero lowerroman upperroman loweralpha upperalpha lowergreek ol { liststyl etype: upperro man; } ul { liststyl etype: square; } lowerlatin upperlatin hebrew armenian georgian cjkideographic hiragana katakana hiraganairoha katakanairoha liststyleposition Declares the position of the list marker. inside outside ol { liststyl eposition: insi de; } ul { liststyl eposition: outs ide; } liststyleimage Declares an image to be used as the list marker. URL values. ul { liststyl eimage: url(ima ge.jpg); } liststyle Shorthand property to declare three list properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): liststyletype liststyleposition liststyleimage ul { liststyl e:disc inside u rl(image.gif); } ol { liststyl e:upperroman o utside; } markeroffset Declares the marker offset for elements with a value ofmarker set for thedisplay property. Lengths and the predefined value auto. li:before { dis play:marker; ma rkeroffset: 5p x; } Margin Properties Property Description Possible Values Examples margintop Declares the top margin for the element. Lengths, percentages, and the predefined value auto. div { m argint op:5px; } div { m argint op:15%; } marginright Declares the right margin for the element. Lengths, percentages, and the predefined value auto. div { m arginr ight:5p x; } div { m arginr ight:1 5%; } marginbottom Declares the bottom margin for the element. Lengths, percentages, and the predefined value auto. div { m arginb ottom:5 px; } div { m arginb ottom:1 5%; } marginleft Declares the left margin for the element. Lengths, percentages, and the predefined value auto. div { m arginl eft:5p x; } div { m arginl eft:1 5%; } margin Shorthand property used to declare all the margin properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): margintop marginright marginbottom marginleft Undeclared values work as further shorthand notation. If only one length value is declared, all four margins will use that length. If two lengths are declared, the top and bottom margins will use the first length while the right and left margins will use the second length. If three lengths are declared, the top margin will use the first length, the right and left margins will use the second length, and the bottom margin will use the third length. div { m argin:5 px 12px 4px 7p x; } div { m argin:5 px; } div { m argin:5 px 10p x; } div { m argin:5 px 7px 4px; } Outline Properties Property Description Possible Values Examples outlinecolor Declares the outline color. Valid color names, RGB values, hexidecimal notation. div { outlinecolor: green; } div { outlinecolor:# 00FF00; } outlinestyle Declares the style of the outline. none dotted dashed solid double groove ridge div { outlinestyle: solid; } div { outlinestyle: inset; } inset outset outlinewidth Declares the width of the outline. Lengths or the following predefined values: thin medium thick div { outlinewidth: 2px; } div { outlinewidth: thin; } outline Used as a shorthand property to set all the background properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): outlinecolor outlinestyle outlinewidth div { outlin e:green solid 2px; } div { outlin e:#00FF00 doub le thick; } Padding Properties Property Description Possible Values Examples paddingtop Declares the top padding for the element. Lengths, percentages, and the predefined value auto. div { p addingtop: 5p x; } div { p addingtop: 1 5%; } paddingright Declares the right padding for the element. Lengths, percentages, and the predefined value auto. div { p addingright: 5 px; } div { p addingright: 1 5%; } paddingbottom Declares the bottom padding for the element. Lengths, percentages, and the predefined value auto. div { p addingbotto m:5px; } div { p addingbotto m:15%; } paddingleft Declares the left padding for the element. Lengths, percentages, and the predefined value auto. div { p addingleft: 5p x; } div { p addingleft: 1 5%; } padding Shorthand property used to declare all the margin properties at once. Separate values by a space in the following order (those that are not defined will use inherited or default initial values): paddingtop paddingright paddingbottom paddingleft Undeclared values work as further shorthand notation. If only one length value is declared, all four sides will use that length. If two lengths are declared, the top and bottom sides will use the first length while the right and left sides will use the second length. If three lengths are declared, the top side will use the first length, the right and left sides will use the second length, and the bottom side will use the third length. div { p addin g:5px 1 2px 4px 7px; } div { p addin g:5px; } div { p addin g:5px 1 0px; } div { p addin g:5px 7 px 4px; } Page Properties Property Description Possible Values Examples marks Declares the type of marks to display outside the page box. crop cross @page { ma rks:crop; } orphans Declares the minimum number of lines of a paragraph that must be left at the bottom of a page. Integers @page { or phans:2; } page Declares the type of page where an element should be displayed. Indentifiers More Information pagebreakafter Declares a page break. auto always avoid left right More Information pagebreakbefore Declares a page break. auto always avoid left right More Information pagebreakinside Declares a page break. auto avoid More Information size Declares the size and orientation of a page box. Lengths, and the following predefined values: More Information auto landscape potrait widows Declares the minimum number of lines of a paragraph that must be left at the top of a page. Integers @page { wi dows:2; } Table Properties Property Description Possible Values Examples bordercollapse Declares the way borders are displayed. collapse separate table { borderc ollaps e:collap se; } table { borderc ollaps e:separa te; } borderspacing Declares the distance separating borders (ifbordercollapse isseparate). Lengths for the horizontal and vertical spacing, separated by a space. If one length is value is declared, that length is used for both the horizontal and vertical spacing. If two lengths are declared, the first one is used for horizontal spacing and the second one is used for vertical spacing. table { borders pacing:5 px; } table { borders pacing:5 px 10px; } captionside Declares where the table caption is displayed in relation to the table. top bottom left right caption { captio nside: t op; } caption { captio nside: r ight; } emptycells Declares the way empty cells are displayed (ifbordercollapse isseparate). show hide table { emptyce lls:sho w; } table { emptyce lls:hid e; } tablelayout Declares the type of table layout. auto fixed table { tablela yout:aut o; } table { tablela yout:fix ed; } Text Properties Property Description Possible Values Examples color Declares the color of the text. Valid color names, RGB values, hexidecimal notation. The predefined color names are: aqua black blue fuchsia gray green lime maroon navy olive purple red silver teal white yellow div { color:green; } div {color:rgb(0,255,0);} div { color:#00FF00; } direction Declares the reading direction of the text. ltr rtl ltr = lefttoright rtl = righttoleft div { direction:ltr; } div { direction:rtl; } lineheight Declares the distance between lines. Numbers, percentages, lengths, and the predefined value of norm al. div { lineheight: nor mal; } div { lineheight: 2e m; } div { lineheight: 12 5%; } letterspacing Declares the amount of space between text characters. A length (in addition to the default space) or the predefined value of normal. div { letterspacin g:normal; } div { letterspacin g:5px; } div { letterspacin g:1px; } textalign Declares the horizontal alignment of inline content. left right center justify div { textalign: cent er; } div { textalign: righ t; } If used on a set of table cells, this property can be given a string value to which the text of each row of the column will be aligned. td { textalign:"." ; } textdecoration Declares the text decoration. none underline overline linethrough blink div { textdecoratio n:none; } div { textdecoratio n:underline; } textindent Declares the indentation of the first line of text. Lengths and percentages. div { textindent: 12p x; } div { textindent: 2%; } textshadow Declares shadow effects on the text. A list containg a color followed by numeric values (separated by spaces) that specify: 1. The color for the shadow effect 2. Horizontal distance to the right of the text 3. Vertical distance below the text 4. Blur radius div { textshadow: gre en 2px 2px 7px; } div { textshadow: oli ve 3px 4px 5px; } texttransform Declares the capitalization effects on the letters in the text. none capitalize uppercase lowercase div { texttransfor m:uppercase; } div { texttransfor m:lowercase; } unicodebidi Declares values relating to bidirectional text. May be used in conjunction with the the directionproperty. normal embed bidioverride div { unicodebidi: em bed; } div { unicodebidi: bi dioverride; } whitespace Declares how white space is handled in an element. normal pre nowrap div { whitespace: pr e; } div { whitespace: now rap; } wordspacing Declares the space between words in the text. A length (in addition to the default space) or the predefined value of normal. div { wordspacing: no rmal; } div { wordspacin g:1.5em; } Other Properties Property Description Possible Values Examples azimuth Declares the angle that Angle values in degrees (deg), or one of div { azimut sound travels to the listener. the following predefined values: leftside farleft left centerleft center centerright right farright rightside behind leftwards rightwards h:90deg; } div { azimut h:behind; } cueafter Declares an audio cue to play after an element. URL values and the predefined value none. div { cueafte r:url(sound.wa v); } div { cueafte r:none; } cuebefore Declares an audio cue to play before an element. URL values and the predefined value none. div { cuebefo re:url(sound.w av); } div { cuebefo re:none; } cue Shorthand proerty to set both cue values at once. URL values and the predefined value none. Separate the values by a space in the following order: cuebefore cueafter If only one cue value is declared, it is used for both before and after. div { cue:ur l(sound.wav) u rl(sound2.wa v); } div { cue:ur l(sound.wav); } elevation Declares the elevation of a sound. Angle values in degrees (deg), or one of the following predefined values: below level above higher lower div { elevatio n:30deg; } div { elevatio n:higher; } pauseafter Declares the amount of time to pause after an element. Time in milliseconds (ms) or percentages. div { pauseaf ter:100ms; } div { pauseaf ter:20%; } pausebefore Declares the amount of time to pause before an element. Time in milliseconds (ms) or percentages. div { pausebe fore:100ms; } div { pausebe fore:20%; } pause Shorthand proerty to set both pause values at once. Separate the values by a space in the following order: div { pause:20 0ms 100ms; } pausebefore pauseafter If only one pause value is declared, it is used for both before and after. div { pause:10 0ms; } pitch Declares the average speaking pitch of a voice. Frequencies in hertz (Hz) or the following predefined values: xlow low medium high xhigh div { pitch:12 0Hz; } div { pitch:hi gh; } pitchrange Declares a change in the pitch range of a voice. Number values between 0 and 100 (lower values indicate a flat voice while higher values indicate an animated voice). div { pitchra nge:50; } div { pitchra nge:99; } playduring Declares a background sound to be played while the current element is spoken. URL value, followed by one or more of the following keywords, separated by spaces: mix repeat Alternatley, one of the following keywords: auto none div { playdur ing:url(musi c.wav); } div { playdur ing:url(musi c.wav) repeat; } div { playdur ing:none; } richness Declares the richness of the voice in spoken text. Numeric values between 0 and 100 (lower values have less richness and higher values have more richness). div { richnes s:50; } div { richnes s:0; } speak Declares if/how text is spoken. normal none spellout div { speak:no ne; } div { speak:sp ellout; } speakheader Declares how often table header cells are spoken. once always th { speakhea der:once; } th { speakhea der:always; } speaknumeral Declares how numerals are spoken. digits continuous div { speaknu meral:digits; } div { speaknu meral:continuo us; } speakpunctuation Declares how punctuation is spoken. code none div { speakpu nctuation:cod e; } div { speakpu nctuation:non e; } speechrate Declares the speech rate of spoken text. A number indicating the number of words per minute, or one of the following predefined values: xslow slow medium fast xfast faster slower div { speechr ate:50; } div { speechr ate:medium; } stress Declares the stress of the voice on spoken text. Numeric values between 0 and 100 (lower values have less stress and higher values have more stress). div { stress:5 0; } div { stres s:0; } voicefamily Declares the voice family of spoken text. Generic or specific voice family names. More Information volume Declares the median volume. Numbers between 0 and 100, percentages, or one of the following predefined values: silent xsoft soft medium loud xloud div { volume:5 0; } div { volume:s ilent; }
JavaScript® (often shortened to JS) is a lightweight, interpreted, object-oriented language with first-class functions, and is best known as the scripting language for Web pages, but it's used in many non-browser environments as well. It is a prototype-based,
multi-paradigm scripting language that is dynamic, and supports
object-oriented, imperative, and functional programming styles.
Java script runs on the client side of the web, which can be used to
design / program how the web pages behave on the occurance of an event.
Java script is an easy to learn and also powerful scripting language,
widely used for controlling web page behaviour.
Contrary to popular misconception, JavaScript is not "Interpreted
Java". In a nutshell, JavaScript is a dynamic scripting language
supporting prototype based
object construction. The basic syntax is intentionally similar to both
Java and C++ to reduce the number of new concepts required to learn the
language. Language constructs, such as if statements, for and while loops, and switch and try ... catch blocks function the same as in these languages (or nearly so.)
JavaScript can function as both a procedural and an object oriented language. Objects are created programmatically in JavaScript, by attaching methods and properties to otherwise empty objects at run time,
as opposed to the syntactic class definitions common in compiled
languages like C++ and Java. Once an object has been constructed it can
be used as a blueprint (or prototype) for creating similar objects.
JavaScript's dynamic capabilities include runtime object
construction, variable parameter lists, function variables, dynamic
script creation (via eval), object introspection (via for ... in), and source code recovery (JavaScript programs can decompile function bodies back into their source text).
For a more in depth discussion of JavaScript programming follow the JavaScript resources links below.
What JavaScript implementations are available?
The Mozilla project provides two JavaScript implementations. The first ever
JavaScript was created by Brendan Eich at Netscape, and has since been
updated to conform to ECMA-262 Edition 5 and later versions. This
engine, code named SpiderMonkey, is implemented in C/C++. The Rhino
engine, created primarily by Norris Boyd (also at Netscape) is a
JavaScript implementation written in Java. Like SpiderMonkey, Rhino is
ECMA-262 Edition 5 compliant.
Several major runtime optimizations such as TraceMonkey (Firefox
3.5), JägerMonkey (Firefox 4) and IonMonkey were added to the
SpiderMonkey JavaScript engine over time. Work is always ongoing to
improve JavaScript execution performance.
Besides the above implementations, there are other popular JavaScript engines such as:-
Google's V8, which is used in the Google Chrome browser and recent versions of Opera browser. This is also the engine used by Node.js.
The JavaScriptCore (SquirrelFish/Nitro) used in some WebKit browsers such as Apple Safari.
The Chakra engine
used in Internet Explorer (although the language it implements is
formally called "JScript" in order to avoid trademark issues).
Each of Mozilla's JavaScript engines expose a public API which
application developers can use to integrate JavaScript into their
software. By far, the most common host environment for JavaScript is web
browsers. Web browsers typically use the public API to create host objects responsible for reflecting the DOM into JavaScript.
Another common application for JavaScript is as a (Web) server side
scripting language. A JavaScript web server would expose host objects
representing a HTTP request and response objects, which could then be
manipulated by a JavaScript program to dynamically generate web pages. Node.js is a popular example of this.