Internet & WWW How to Program

Size: px
Start display at page:

Download "Internet & WWW How to Program"

Transcription

1 Page 1 of 24 Internet & WWW How to Program Chapter 2 Microsoft Internet Explorer 5.5 Vocabulary Repositories, aggregate, 2.2 Connecting to the Internet Bandwidth refers to the amount of data that can be transferred through a communications medium in a fixed amount of time. 2.4 Searching the Internet Search engines such as Google, Yahoo Altavista or HotBot store information in data repositories called database, which allow for quick retrieval of information. Other sides, such as Microsoft Network, use metasearch engines, which do not maintain database. Instead, they send the search criteria to other search engines and aggregate the results. 2.7 File Transfer Protocol (FTP) ftp:// Chapter 3 Photoshop Elements Vocabulary Raster, marquee, lasso, toggling, dithering, interlacing, Chapter 4 Introduction to XHTML: Part First XHTML Example XHTML comments always start with <!-- and end with --> Titles usually appear in the title bar at the top of the browser window and also as the text identifying a

2 Page 2 of 24 page when users add the page to their list of Favorites or Bookmarks. Search engines also use the title for cataloging purposes. 4.4 W3C XHTML Validation Service Validator.w3.org for checking a documentâ s syntax. Documents can be validated from either a URL that specifies the location of the file or by uploading a file to the site Validator.w3.org/file-upload.html. 4.5 Headers XHTML provides six headers, called header elements. <h1> to <h6> 4.6 Linking <p><a href = â œ >Deitel</a></p> <a href = â œmailto: deitel@deitel.comâ >deitel@deitel.com</a> 4.7 Images <img src = â œxmlhtp.jpgâ height = â œ238â width = â œ183â alt = â œxml How to Program book coverâ /> Tip: including the width and height attributes in an <img> tag can result in the browser loading and rendering pages faster. Using images as huyperlinks: <a href = â œlinks.htmlâ ><img src = â œbuttons/link.jpgâ width = â œ65â height = â œ50â alt = â œlinks Pagesâ /> 4.8 Special Characters and More Line Breaks Using the special character < for the less-than symbol. &copy &amp for & &frac14 for? Sup Sub

3 Page 3 of 24 < del > for a strike-through text. <hr /> 4.9 Unordered Lists <ul> <li>(list item) 4.10 Nested and Ordered Lists <ol> <ol type = â œiâ > or type = â œaâ Unordered list items may be explicitly set to discs, circles or squares by setting the ul elementâ s type attribute to â œdiscâ, â œcircleâ or squareâ, respectively. Chapter 5 Introduction to XHTML: Part Basic XHTML Tables <table border = â œ1â width = â œ40%â summary = â œthis table provides information about the price of fruitâ > Attribute summary dexcribes the tableâ s contents. This attribute to make the table more accessible to users with visual impairments. <caption><strong>price of Fruit</strong></caption> The caption element describes the tableâ s content and helps text based browsers interpret the table data. <thead> <tbody> <tfoot> 5.3 Intermediate XHTML Tables and Formatting <colgroup> <col align = â œrightâ span = â œ1â /> </colgroup> <rowspan>, <colspan>

4 Page 4 of 24 Attribute valign, which aligns data vertically and may be assigned one of four values â â œtopâ, â œmiddleâ, â œbottomâ or â œbaselineâ which ignores the fonts used for the row data and sets the bottom of all text in the row on a common baseline. 5.4 Basic XHTML Forms <form method = â œpostâ action = â œ/cgi-bin/formmailâ > <p> <input type = â œhiddenâ name = â œrecipientâ Value = deitel@deitel.com /> <input type = â œhiddenâ name = â œsubjectâ Value = â œfeedback Formâ /> <input type = â œhiddenâ name = â œredirectâ Value = â œmain.htmlâ /> </p> <p><label>name: <input name = â œnameâ type = â œtextâ size = â œ25â Maxlength = â œ30â /> </label></p> <p> <input type = â œsubmitâ value = â œsubmit Your Entriesâ /> <input type = â œresetâ value = â œclear Your Entriesâ /> </p> </form> Method = â œpostâ appends form data to the browser request, which contains the protocol (HTTP) and the requested resourceâ s URL. The other possible value, method = â œgetâ appends the form data directly to the end of the URL. For example, the URL/cgi-bin/formmail might have the form information name = bob appended to it. The three hidden inputs are: an address to which the data will be sent, the â s subject line and a URL where the browser will be redirected after submitting the form. 5.5 More Complex XHTML Forms Textarea: <p><label> Comments: <br /> <textarea name = â œcommentsâ rows = â œ4â cols = â œ36â > Enter your comments here. </textarea> </label></p> <input name = â œ â type = â œpasswordâ size = â œ25â /> <label>site design <input name = â œthingslikedâ type = â œcheckboxâ value = â œdesignâ /> </label>

5 Page 5 of 24 When your form has several checkboxes with the same name, you must make sure that they have different values. Radio buttons are similar to checkboxes, except that only one radio button in a group of radio buttons may be selected at any time. All radio buttons in a group have the same name attributes and are distinguished by their different value attributes. <input name = â œhowtositeâ type = â œradioâ value = â œsearch engineâ checked = â œcheckedâ /> <select name = â œratingâ > <option selected = â œselectedâ >Amazing</option> <option>10</option> <option>9</option> : : 5.6 Internal Linking <p><a href = â œ#ceosâ >Go to <em>favorite CEOs</em></a></p> : : <p><a name = â œceosâ ></a></p> A hyperlink can specify an internal link in another document by specifying the document name followed by a pound sign and the named anchor as in: Href = â œpage.html#nameâ 5.7 Creating and Using Image Maps <map id = â œpictureâ > <area href = â œform.htmlâ shape = â œrectâ cords = â œ2,123,54,143â alt = â œgo to the feedback formâ /> <area shape = â œpolyâ alt = â œ the Deitelsâ cords = â œ162,25,154,39,158,54,169,51,183,39,161,26â Href = â œmailto:deitel@deitel.comâ /> <area shape = â œcircleâ </map> <img src = â œdeitel.gifâ width = â œ200â height = â œ144â alt = â œdeitel logoâ usemap = â œ#pictureâ /> 5.8 meta Elements Used for search engines.

6 Page 6 of 24 Two important attributes of the meta element are name and content. <head> <meta name = â œkeywordsâ content = â œweb page, design, XHTML, helpâ /> <meta name = â œdescriptionâ content = â œthis web site will help you learn the basics of XHTML.â /> </head> 5.9 frameset Element <frameset cols = â œ110, *â > <frame name = â œleftframeâ src = â œnav.htmlâ /> <frame name = â œmainâ src = â œmain.htmlâ /> <noframes></noframes> </frameset> A targe can be set to a number of present values: "_blank" loads the page into a new browser window. "_self" loads the page into the frame in which the anchor element appears and "_top" loads the page into the full browser window Nested framesets <frameset rows = "175, *"> Chapter 6: Cascading Style Sheets (CSS) 6.2 Inline Styles style <p style = "font-size: 20pt; color: #0000ff"> 6.3 Embedded Style Sheets in an XHTML document's head section. <head> <style type = "text/css"> em {background-color: #8000ff; color: white h1 {font-family: arial, sans-serif p {font-size: 14pt.special {color: blue </style> </head> <body> <h1 class = "special">deitel</h1>

7 Page 7 of 24 </body> Css rules in embedded style sheets use the same syntax as inline styles: the property name is followed by a colon(:) and the value of that property. Multiple properties are separated by semilcolons(;). Relative values -- xx-small, x-small, small, smaller, medium, large, larger, x-large and xx-large. if a relative font size is specified, such as large or larger, the actual size will be determined by the browser that displays the font. 6.4 Conflicting Styles <head> <style type = "text/css"> a.nodec {text-decoration: none a:hover {text-decoration: underline; color: red; background-color: #ccffcc li em {color: red; font-weight: bold ul ul {text-decoration: underline; margin-left: 15px </style> </head> Other possible values for text-decoration include blink, overline,line-through and underline. li, em {color: red; font-weight: bold A plxel is a relative-length measurement--it varies in size, based on screen resolution. Other relative lengths are em, ex. To set an element to display text at 150% of its default text size, the author could use the syntax: font-size: 1.5em absolute-length measurements: in(inches, cm(centimeters), mm(millimeters), pt(points; 1pt = 1/72 in) and pc(picas--1pc = 12pt). 6.5 Linking External Style Sheets file name: styles.css another html file: code: <head> <link rel = "stylesheet" type = "text/css" href = "styles.css" /> </head> 6.6 W3C CSS Validation Service jigsaw.w3.org/css-validator

8 Page 8 of Positioning Elements The z-index attribute allows you to layer overlapping elements properly. Elements that have higher z-index values are displayed in front of elements with lower z-index values. Code: <p><img src = "i.gif" style = "position: absolue; top: opx; left: opx; z-index: 1" alt = "First positioned image" /></p> <p style = "position: absolute: top: 50px; left: 50px; z-index: 3; font-size: 20pt;">Positioned Text</p> Setting the position property to relative, as in class super, lays out the element on the page and offsets the element by the specified top, bottom, left or right values. Code: span {color: red; font-size:.6em; height: 1em.super {position: relative; top: -1ex.shiftleft {position: relative; left: -1ex Element span is a grouping element -- it does not apply any inherent formatting to its contents. Its primary purpose is to apply CSS rules or id attributes to a block of text. Element span is an inline-level element -- it is displayed inline with other text and with no line breaks. As similar element is the div element, which also applies no inherent styles but is displayed on its own line, with margins above and below (a block-level element). 6.8 Backgrounds Code: <style type = "text/css"> body { background-image: url(logo.gif); background-position: bottom right; background-repeat: no-repeat; background-attachment: fixed; p { text-indent: 1em; font-family: arial, sans-serif;.dark { font-weight: bold; </style> <body> <P> This example uses <span class = "dark">deitel...</span>logo in... </p> </body> The background-image The background-position property controls the image on the page. The keywords top,

9 Page 9 of 24 bottom, center, left and right are used individually or in combination for vertical and horizontal positioning. Positioned at 50% of the distance across the screen) and 30 pixels from the top, use background-position: 50% 30px; The background-repeat property can be set to repeat (the default) to tile the image vertically and horizontally, repeat-x to tile the image only horizontally or repeat-y to tile the image only vertically. The background-attachment: fixed, fixes the image in the position specified by background-position. Scolling the browser window will not move the image from its position. The default value, scroll, moves the image as the user scrolls through the document. 6.9 Element Dimensions div { background-color: #ffccff; margin-bottom:.5em <div style = "width: 80%; height: 30%; overflow: scroll; text-align: center"> 6.10 Text Flow and the Box Model div = "float: right; margin:.5em; text-align: right"> div = "float: right; padding;.5am; text-align: right"> The margin specifies the distance between the edge of the element and any other element on the page. When the browser renders elements using the box model, the content of each element is surrounded by padding, a border and a margin. Margins for individual sides of an element can be specified by using margin-top, marginright, margin-left and margin-bottom. Padding is the distance between the content inside an element and the element's border. Like the margin, the padding can be set for each side of the box, with padding-top, padding-right, padding-left and padding-bottom. You can interrupt the flow of text around a floaed element by setting the clear property to the same direction as that in which the element is floated -- right or left. Setting the clear property to all interrupts the flow on both sides of the document. <span style = "clear: right"> Other style: This text has a border This text has a border This text has a border A thin red line...

10 Page 10 of 24 And a thicker blue line In this example, we set three properties -- border-width, border-color and border-style. The border-width property may be set to any of the CSS lengths or to the predefined values of thin, medium or thick. The border-color property sets the color. As with padding and margins, each of the border properties may be set for individual sides of the box (e.g., border-top-style or border-left-color). The border-styles are none, hidden, dotted, dashed, solid, double, groove, ridge, inset and outset. Borders groove and ridge have opposite effects, as do inset and outset User Style Sheets relative measurements: em or ex absolue measurements such as pt Chapter 7 JavaScript: Introduction to Scripting Vocabulary carriage return, magenta, facilitates, arithmetic 7.2 Simple Program: Printing a Line of Text in a Web Page <head> <script type = "text/javascript"> <!-- document.writeln( "<h1>welcome to JavaScript Programming!</h1>" ); // --> </script> </head> See the web JavaScript is case sensitive. write writeln: after a writeln statement, the next output appears on the next line. The backslash (/) in a string is an escape character. We use this escape sequence to insert double quotes around the attribute value for style. document.write( "<h1 style = \"color; magenta\">" ); document.write( "Welcome to Java Script " + "Programming!</h1>" );

11 Page 11 of 24 See the web window.alert ("Welcome to \njavascript\nprogramming!" ); See the web \n \t \r \\ \" \' 7.3 Another JavaScript Program: Adding Integers The script uses anotehr predefined dialog box from the window object, one called a prompt dialog. that allows the user to input a value form use in the script. var firstnumber, secondnumber, number1, number2, sum; firstnumber = window.prompt( "Enter first integer", "0" ); secondnumber = window.prompt( "Enter second integer", "0" ); number1 = parseint (firstnumber); number2 = parseint (secondnumber); sum = number1 + number2; document.writeln ("<h1>the sum is " + sum + "</h1>" ); Show the example Some valid identifiers are Welcome, $value, _value, m_inputfield1 and button7. The name 7button is not a valid identifier, because it begins with a digit, and the name input field is not a valid identifier, because it contains a space. Another comment notation facilitates the writing of multiple_line comments. For example, /* This is a multiple-line comment */ 7.6 Decision Making: Equality and Relational Operators var first, second, number1, number2; first = window.prompt("enter first integer:", "0");

12 Page 12 of 24 second = window.prompt("enter second integer:","0"); number1 = parseint(first); number2 = parseint(second); document.writeln("<h1>comparison Results</h1>"); document.writeln( "<table border=\"1\" width = \"100%\" ID="Table1">"); if (number1 == number2) document.writeln("<tr><td>" + number1 + " == " + number2 + "</td></tr>"); if (number1!= number2) document.writeln("<tr><td>" + number1 + "!= " + number2 + "</td></tr>"); if (number1 < number2) document.writeln("<tr><td>" + number1 + " < " + number2 + "</td></tr>"); if (number1 > number2) document.writeln("<tr><td>" + number1 + " > " + number2 + "</td></tr>"); if (number1 <= number2) document.writeln("<tr><td>" + number1 + " < = " + number2 + "</td></tr>"); if (number1 >= number2) document.writeln("<tr><td>" + number1 + " > = " + number2 + "</td></tr>"); document.writeln("</table>"); Show the example 7.7 JavaScript Internet and World Wide Web Resources Some resources for JavaScript programming: msdn.microsoft.com/scripting/default.htm Chapter 8 JavaScript: Control Structures I Vocabulary pajamas, sentinel, 8.6 if/else Selection Structure

13 Page 13 of 24 JavaScript provides an operator, call the conditional operator (?:), that is closely related to the if/else structure. document.writeln ( studentgrade >= 60? "Passed" : "Failed" ); 8.8 Formulating Algorithms: Case Study1 (Counter-Controlled Repetition) a class of ten students took a quiz. The grades (integers in the range 0 to 100) for this quiz are available to you. Determine the class average on the quiz. <script type="text/javascript"> <!-- var total, gradecounter, gradevalue, average, grade; total = 0; gradecounter = 1; while (gradecounter <= 10) { grade = window.prompt("enter integer grade:"+ "(number " + gradecounter + ")", "0" ); gradevalue = parseint( grade ); total = total + gradevalue; gradecounter = gradecounter + 1; average = total / 10; document.writeln( "<h1>class average is " + average + "</h1>" ); //--> </script> Show the example 8.9 Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 2 (sentinel-controlled Repetition) Develop a class-averaging program that will process an arbitrary number of grades each time the program is run. <script type="text/javascript"> <!-- var total,

14 Page 14 of 24 gradecounter, gradevalue, average, grade; total = 0; gradecounter = 0; grade = window.prompt("enter integer grade "+ "(number " + gradecounter + "):", "0" ); gradevalue = parseint( grade ); while (gradecounter <= 10) { total = total + gradevalue; gradecounter = gradecounter + 1; grade = window.prompt("enter integer grade:"+ "(number " + gradecounter + ")", "0" ); gradevalue = parseint( grade ); if (gradecounter!= 0) { average = total / gradecounter; document.writeln( "<h1>class average is " + average + "</h1>" ); else document.writeln( "<p>no grades were entered</p>" ); //--> </script> Show the example 8.10 Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 3 (Nested Control Structures) <script type="text/javascript"> <!-- var passes = 0, failures = 0, student = 1, result; while (student < =10) { result = window.prompt( "Enter result (1=pass, 2=fail)", "0"); if (result == "1") passes = passes +1; else failures = failures +1;

15 Page 15 of 24 student = student +1; document.writeln("<h1>examination Results</h1>"); document.writeln( "Passed: " + passes + "<br />Failed: " + failures ); if (passes > 8) document.writeln( " Raise Tuition" ); //--> </script> 8.12 Increment and Decrement Operators var c; c = 5 document.writeln ("<h3>postincrementing</h3>" ); document.writeln (c); //print 5 document.writeln(c++); //print 5 document.writeln(c); //print 6 c = 5 document.writeln ("<h3>preincrementing</h3>" ); document.writeln (c); //print 5 document.writeln(++c); //print 6 document.writeln(c); //print JavaScript Internet and World Wide Web Resources Some resources for JavaScript programming: developer.netscape.com/tech/javascript Chapter 9 JavaScript: Control Structures II Vocabulary oracle, alter, 9.4 Examples Using the for Structure var amount, deposit, interest, principal, rate; deposit = window.prompt("deposit amount: ", "1000"); interest = window.prompt("interest is: (as 0.05)", "0.05");

16 Page 16 of 24 principal = parseint(deposit); rate = parsefloat(interest); document.writeln( "<table border = \"1\" width = \"100%\" ID="Table1">"); document.writeln( "<caption>calculating Compound Interest</caption>"); document.writeln( "<thead><tr><th align = \"left\">year</th>" ); document.writeln( "<th align = \"left\">amount on deposit</th>"); document.writeln( "</tr></thead>"); for (var year=1; year<=10; ++year) { amount= principal * Math.pow(1.0+rate,year); document.writeln("<tbody><tr><td>" + year + "</td><td>" + Math.round(amount*100)/100 + "</td></tr>"); document.writeln("</tbody></table>"); Show the example 9.5 switch Multiple-Selection Structure <script type = "text/javascript"> <!-- var choice, starttag, endtag, validinput = true, listtype; choice = window.prompt( "Select a list style:\n" + "1(bullet), 2(numbered, 3(lettered)", "1"); switch (choice) { case "1": starttag = "<ul>"; endtag = "</ul>"; listtype = "<h1>bullet List</h1>"; break; case "2": starttag = "<ol>"; endtag = "</ol>"; listtype = "<h1>ordered List: Numbered</h1>"; break; case "3": starttag = "<ol type = \"A\">"; endtag = "</ol>"; listtype = "<h1>ordered List: Lettered</h1>"; break; default: validinput = false;

17 Page 17 of 24 if (validinput == true) { document.writeln(listtype + starttag); for (var i = 1; i<=3; ++i) document.writeln("<li>list item " + i + "</li>"); document.writeln(endtag); else document.writeln("invalid choice: " + choice ); // --> </script> Show the example 9.7 break and continue Statements for (var count = 1; count <= 10; ++count ) { if (count == 5) continue; //skip remaining code in loop only if count == 5 document.writeln ("Count is: " + count + "<br />" ); the resoult will be: Count is: 1 Count is: 2 Count is: 3 Count is: 4 Count is: 6 Count is: 7 Count is: 8 Count is: 9 Count is: Labeled break and continue Statements stop: { for (...){ for (...){ if (...) break stop; // jump to end of stop block document.write("*"); document.writeln("end of script"); nextrow: { for (...){ for (...){

18 Page 18 of 24 if (...) continue nextrow; // next iteration of labeled loop document.write("*"); document.writeln("end of script"); Chapter 10 JavaScript: JavaScript: Functions Vocabulary, 10.4 Function Definitions The format of a function definition is function function-name( parameter-list ) { declarations and statements Example: function square( y ) { return y * y; function maximum (x, y, z) { return Math.max(x, Math.max( y, z )); 10.5 Random-Number Generation 0.0 <= Math.radom() < 1.0 value = Math.floor( 1 + Math.random() * 6 ); 10.6 Example: Game of Chance A player rolls two dice. Each die has six faces. These faces contain 1,2,3,4,5 and 6 spots, respectively. After the dice have come to rest, the sum of the spots on the two upward faces is calculated. If the sum is 7 or 11 on the first throw, the player wins. If the sum is 2, 3 or 12 on the first throw (called "craps"), the player loses (i.e., the "house" wins). If the sum is 4, 5, 6, 8, 9 or 10 on the first throw, that sum becomes the player's "point". To win, you must continue rolling the dice until you "make your point" (i.e., roll your point value). The player loses by rolling a 7 before making the point.

19 Page 19 of 24 Show the example 10.8 Scope Rules Ientifiers declared inside a function have function (or local scope. Show the example 10.9 JavaScript Global Functions escape, eval, isfinite, isnan, ParseFloat, ParseInt, unescape Recursion Show the example Example Using Recursion: Fibonacci Series Show the example Recursion vs. Iteration Both iteration and recursion can occur infinitely. Recursion has many negatives. Being expensive in terms of both processor time and memory space JavaScript Internet and World Wide Web Resources rummelplatz.uni-mannheim.de/~skoch/js/tutorial.htm Chapter 11 JavaScript: Arrays Vocabulary, 11.2 Arrays if we assume that variable a is equal to 5 and that variable b is equal to 6, then the statement c[a + b] += 2; adds 2 to array element c[11]. The length of array c is 12 ans is determined by the following expression:

20 Page 20 of 24 c.length 11.3 Declaring and Allocating Arrays To allocate 12 elements for integer array c, use the statement var c = new Array( 12 ); 11.4 Examples Using Arrays There are two ways in which the initial values can be specified. var n = [10, 20, 30, 40, 50]; or var n = new Array(10, 20, 30, 40, 50); var colors = new Array( "cyan", "magenta", "yellow", "black" ); 11.5 References and Reference Parameters Two ways to pass arguments to functions (or methods) in many programming languages are call-by-value and call-by-reference. Passing arrays by reference make sense for performance reasons Passing Arrays to Functions For example: var hourlytemperatures = new Array ( 24 ); then the function call modifyarray ( hourlytemperatures ); In JavaScript, every array object "knows" its own size (via the length attribute). Thus, when we pass an array object into a function, we do not pass the size of the array separately as an argument. Array method join creates a string containing all the elements in the Array. Method join takes as its argument a string containing the separator that should be used to separate the elements of the array in the string that is returned. If the argument is not specified, the empty string is used as the separator. function start() { var a = [ 1, 2, 3, 4, 5 ]; document.writeln( â œ<h2>effects of passing entire â œ + â œarray call-by-reference</h2>â ); outputarray( â œthe values of the original array are: â œ, a ); modifyarray( a );

21 Page 21 of 24 outputarray ( â œthe values of the modified array are: â œ, a ); //the above function call will modify the array document.writeln( â œ<h2>effects of passing array â œ + â œelement call-by-value</h2>â + â œa[3] before modifyelement: â œ + a[3] ); modifyelement ( a[ 3 ] ); document.writeln( â œ<br />a[3] after modifyelement: â œ + a[3] ); //the value doesn't change. function outputarray( header, thearray ) { document.writeln( header + thearray.join( â œ â œ ) + â œ<br />â ); function modifyarray( thearray ) { for ( var j in thearray ) thearray[ j ] *= 2; function modifyelement( e ) { e *= 2; document.writeln( â œ<br />value in modifyelement: â œ + e ); thearray.join( " " ) for ( var j in thearray ) thearray[ j ] *= 2; 11.7 Sorting Arrays var a = [ 10, 1, 8, 8, 3, 5, 4 ] a.sort( compareintegers ); //sort is a built-in method function compareintegers ( value1, value2 ) { return parseint( value1 ) - parseint( value2 ); //it's in ascending order.

22 Page 22 of Searching Arrays: Linear Search and Binary Search 11.9 Multiple-Subscripted Arrays var b = [ [ 1, 2 ], [ 3, 4 ] ]; A multiple-subscripted array in which each row has a different number of columns can be allocated dynamically as follows: var b; b = new Array ( 2 ); b[ 0 ] = new Array( 5 ); b[ 1 ] = new Array( 3 ); var total = 0; for ( var row in a ) for ( var col in a [ row ] ) total += a[ row ][ col ]; Appendix G Unicode Vocabulary Consortium, glyphs, misrepresentation, adaptation, cumbersome, facilitate, envision, unambiguous, encompass, hexadecimal, predominance, surrogate, alphabetic, numerals, punctuation, ideographs, syllabaries, diacritics, tilde, disparate, hindrance, linguistics, Armenian, Kannada, exclamation mark, Hiragana, Website: UTF-8 data consists of 8-bit bytes (sequences of one, two three or four bytes depending on the character being encoded) and is well suited for ASCII-base systems when there is a predominance of one-byte characters (ASCII represents characters as one-byte) UTF-8 is a variable width encoding form that is more compact for text involving mostly Latin characters and ASCII punctuation. UTF-16 is the default encoding form of the Unicode Standard. It is a variable width encoding form that uses 16-bit code units instead of bytes. Most characters are represented by a single unit, but some characters require surrogate pairs. UTF-32 is a 32-bit encoding form. The major advantage of the fixed-width encoding form is that it uniformly expresses all characters, so that they are easy to handle in arrays and so forth. Index

23 Page 23 of 24 C CGI: Common Gateway Interface CSS: Cascading Style Sheets D DBCS: double-byte character set DSL: digital subscriber line H HTTP: hypertext transfer protocol I ICW: internet connection wizard ISDN: Integrated Services Digital Network J JPEG: Joint Photographic Experts Group M MBCS: multi-byte character set P PDF: portable document format PNG: Portable Network Graphics T TA: terminal adaptor U URL: Uniform Resource Locator UTFP: Unicode transformation formats X XHTML: Extensible Hypertext Markup Language

24 Page 24 of TOPYANGç ˆæ Šæ æœ ã ä ç æ æœ æ Šåˆ

Chapter 9 - JavaScript: Control Structures II

Chapter 9 - JavaScript: Control Structures II Chapter 9 - JavaScript: Control Structures II Outline 9.1 Introduction 9.2 Essentials of Counter-Controlled Repetition 9.3 for Repetition Structure 9. Examples Using the for Structure 9.5 switch Multiple-Selection

More information

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS MOST TAGS CLASS Divides tags into groups for applying styles 202 ID Identifies a specific tag 201 STYLE Applies a style locally 200 TITLE Adds tool tips to elements 181 Identifies the HTML version

More information

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space. HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information

More information

HTML and CSS COURSE SYLLABUS

HTML and CSS COURSE SYLLABUS HTML and CSS COURSE SYLLABUS Overview: HTML and CSS go hand in hand for developing flexible, attractively and user friendly websites. HTML (Hyper Text Markup Language) is used to show content on the page

More information

Deccansoft Software Services

Deccansoft Software Services Deccansoft Software Services (A Microsoft Learning Partner) HTML and CSS COURSE SYLLABUS Module 1: Web Programming Introduction In this module you will learn basic introduction to web development. Module

More information

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014 1/6/2019 12:28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014 CATALOG INFORMATION Dept and Nbr: CS 50A Title: WEB DEVELOPMENT 1 Full Title: Web Development 1 Last Reviewed:

More information

Appendix D CSS Properties and Values

Appendix D CSS Properties and Values HTML Appendix D CSS Properties and Values This appendix provides a brief review of Cascading Style Sheets (CSS) concepts and terminology, and lists CSS level 1 and 2 properties and values supported by

More information

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1 59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xi Introduction xxiii Chapter 1: Creating Structured Documents 1 A Web of Structured Documents 1 Introducing XHTML 2 Core Elements and Attributes 9 The

More information

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013 UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013 SUBJECT CODE : SCSV1223 (Section 05) SUBJECT NAME : WEB PROGRAMMING YEAR/COURSE : 1SCSV TIME : 2.00 4.00 PM DATE : 18 APRIL 2013 VENUE : KPU 10

More information

Web Engineering CSS. By Assistant Prof Malik M Ali

Web Engineering CSS. By Assistant Prof Malik M Ali Web Engineering CSS By Assistant Prof Malik M Ali Overview of CSS CSS : Cascading Style Sheet a style is a formatting rule. That rule can be applied to an individual tag element, to all instances of a

More information

COSC 2206 Internet Tools. CSS Cascading Style Sheets

COSC 2206 Internet Tools. CSS Cascading Style Sheets COSC 2206 Internet Tools CSS Cascading Style Sheets 1 W3C CSS Reference The official reference is here www.w3.org/style/css/ 2 W3C CSS Validator You can upload a CSS file and the validator will check it

More information

Html basics Course Outline

Html basics Course Outline Html basics Course Outline Description Learn the essential skills you will need to create your web pages with HTML. Topics include: adding text any hyperlinks, images and backgrounds, lists, tables, and

More information

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web HTML & CSS SWE 432, Fall 2017 Design and Implementation of Software for the Web HTML: HyperText Markup Language LaToza Language for describing structure of a document Denotes hierarchy of elements What

More information

Chapter 10 JavaScript/JScript: Control Structures II 289

Chapter 10 JavaScript/JScript: Control Structures II 289 IW3HTP_10.fm Page 289 Thursday, April 13, 2000 12:32 PM Chapter 10 JavaScript/JScript: Control Structures II 289 10 JavaScript/JScript: Control Structures II 1

More information

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension HTML Website is a collection of web pages on a particular topic, or of a organization, individual, etc. It is stored on a computer on Internet called Web Server, WWW stands for World Wide Web, also called

More information

BIM222 Internet Programming

BIM222 Internet Programming BIM222 Internet Programming Week 7 Cascading Style Sheets (CSS) Adding Style to your Pages Part II March 20, 2018 Review: What is CSS? CSS stands for Cascading Style Sheets CSS describes how HTML elements

More information

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS2.1 reflects browser implementations - CSS3 is partially finished and parts are implemented in current browsers

More information

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS2.1 reflects browser implementations - CSS3 is partially finished and parts are implemented in current browsers

More information

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS3 is on its way - CSSs provide the means to control and change presentation of HTML documents - CSS is not

More information

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:

More information

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:

More information

CSS Cascading Style Sheets

CSS Cascading Style Sheets CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css images boris.jpg Types of CSS External Internal Inline External CSS An external style sheet is a text document with

More information

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document

More information

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T. Indian Institute of Technology Kharagpur HTML Part III Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T. Kharagpur, INDIA Lecture 15: HTML Part III On completion, the student will be able

More information

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style precedence and style inheritance Understand the CSS use

More information

Index. CSS directive, # (octothorpe), intrapage links, 26

Index. CSS directive, # (octothorpe), intrapage links, 26 Holzschlag_.qxd 3/30/05 9:23 AM Page 299 Symbols @import CSS directive, 114-115 # (octothorpe), intrapage links, 26 A a element, 23, 163, 228 abbr element, 228 absolute keywords for font sizing, 144 absolute

More information

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application. Extra notes - Client-side Design and Development Dr Nick Hayward HTML - Basics A brief introduction to some of the basics of HTML. Contents Intro element add some metadata define a base address

More information

Introduction to WEB PROGRAMMING

Introduction to WEB PROGRAMMING Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks

More information

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Note: We skipped Study Guide 1. If you d like to review it, I place a copy here: https:// people.rit.edu/~nbbigm/studyguides/sg-1.docx

More information

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student Welcome Please sit on alternating rows powered by lucid & no.dots.nl/student HTML && CSS Workshop Day Day two, November January 276 powered by lucid & no.dots.nl/student About the Workshop Day two: CSS

More information

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web

More information

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

CSS مفاهیم ساختار و اصول استفاده و به کارگیری CSS مفاهیم ساختار و اصول استفاده و به کارگیری Cascading Style Sheets A Cascading Style Sheet (CSS) describes the appearance of an HTML page in a separate document : مسایای استفاده از CSS It lets you separate

More information

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p. Acknowledgments p. xix Preface p. xxi Web Basics Introduction to HTML p. 3 Basic HTML Concepts p. 4 HTML: A Structured Language p. 7 Overview of HTML Markup p. 11 Logical and Physical HTML p. 13 What HTML

More information

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21 Table of Contents Chapter 1 Getting Started with HTML 5 1 Introduction to HTML 5... 2 New API... 2 New Structure... 3 New Markup Elements and Attributes... 3 New Form Elements and Attributes... 4 Geolocation...

More information

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning Page Layout contents of this presentation are Copyright 2009 Marty Stepp and Jessica Miller 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning 2 1 4.1

More information

Programmazione Web a.a. 2017/2018 HTML5

Programmazione Web a.a. 2017/2018 HTML5 Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text

More information

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1 Introduction Chapter 1: Structuring Documents for the Web 1 A Web of Structured Documents 1 Introducing HTML and XHTML 2 Tags and Elements 4 Separating Heads from Bodies 5 Attributes Tell Us About Elements

More information

Module 2 (VII): CSS [Part 4]

Module 2 (VII): CSS [Part 4] INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 2 (VII): CSS [Part 4] Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals

More information

HTML TUTORIAL ONE. Understanding What XHTML is Not

HTML TUTORIAL ONE. Understanding What XHTML is Not HTML TUTORIAL ONE Defining Blended HTML, XHTML and CSS HTML: o Language used to create Web pages o Create code to describe structure of a Web page XHTM: o Variation of HTML o More strictly defines how

More information

ICT IGCSE Practical Revision Presentation Web Authoring

ICT IGCSE Practical Revision Presentation Web Authoring 21.1 Web Development Layers 21.2 Create a Web Page Chapter 21: 21.3 Use Stylesheets 21.4 Test and Publish a Website Web Development Layers Presentation Layer Content layer: Behaviour layer Chapter 21:

More information

GoSquared Equally Rounded Corners Equally Rounded Corners -webkit-border-radius -moz-border-radius border-radius Box Shadow Box Shadow -webkit-box-shadow x-offset, y-offset, blur, color Webkit Firefox

More information

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148 Index Numbers & Symbols (angle brackets), in HTML, 47 : (colon), in CSS, 96 {} (curly brackets), in CSS, 75, 96. (dot), in CSS, 89, 102 # (hash mark), in CSS, 87 88, 99 % (percent) font size, in CSS,

More information

Creating Web Pages with SeaMonkey Composer

Creating Web Pages with SeaMonkey Composer 1 of 26 6/13/2011 11:26 PM Creating Web Pages with SeaMonkey Composer SeaMonkey Composer lets you create your own web pages and publish them on the web. You don't have to know HTML to use Composer; it

More information

Parashar Technologies HTML Lecture Notes-4

Parashar Technologies HTML Lecture Notes-4 CSS Links Links can be styled in different ways. HTML Lecture Notes-4 Styling Links Links can be styled with any CSS property (e.g. color, font-family, background, etc.). a { color: #FF0000; In addition,

More information

1.264 Lecture 12. HTML Introduction to FrontPage

1.264 Lecture 12. HTML Introduction to FrontPage 1.264 Lecture 12 HTML Introduction to FrontPage HTML Subset of Structured Generalized Markup Language (SGML), a document description language SGML is ISO standard Current version of HTML is version 4.01

More information

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets 3.1 Introduction - HTML is primarily concerned with content, rather than style - However, tags have presentation properties, for which browsers have default values - The CSS1 cascading style sheet specification

More information

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

<style type=text/css> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page*** Chapter 7 Using Advanced Cascading Style Sheets HTML is limited in its ability to define the appearance, or style, across one or mare Web pages. We use Cascading style sheets to accomplish this. Remember

More information

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100 Introduction to Multimedia MMP100 Spring 2016 profehagan@gmail.com thiserichagan.com/mmp100 Troubleshooting Check your tags! Do you have a start AND end tags? Does everything match? Check your syntax!

More information

@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ /* bidi */

@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ /* bidi */ / BEGIN LICENSE BLOCK Version: MPL 1.1/GPL 2.0/LGPL 2.1 The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with

More information

CSS: The Basics CISC 282 September 20, 2014

CSS: The Basics CISC 282 September 20, 2014 CSS: The Basics CISC 282 September 20, 2014 Style Sheets System for defining a document's style Used in many contexts Desktop publishing Markup languages Cascading Style Sheets (CSS) Style sheets for HTML

More information

Chapter 3 Style Sheets: CSS

Chapter 3 Style Sheets: CSS WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE JEFFREY C. JACKSON Chapter 3 Style Sheets: CSS 1 Motivation HTML markup can be used to represent Semantics: h1 means that an element is a top-level heading

More information

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development Objectives INFS 2150 Introduction to Web Development 3. Page Layout Design Create a reset style sheet Explore page layout designs Center a block element Create a floating element Clear a floating layout

More information

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development INFS 2150 Introduction to Web Development 3. Page Layout Design Objectives Create a reset style sheet Explore page layout designs Center a block element Create a floating element Clear a floating layout

More information

CSS Styles Quick Reference Guide

CSS Styles Quick Reference Guide Table 1: CSS Font and Text Properties Font & Text Properties Example(s) font-family Font or typeface font-family: Tahoma font-size Size of the font font-size: 12pt font-weight Normal or bold font-weight:

More information

IMY 110 Theme 6 Cascading Style Sheets

IMY 110 Theme 6 Cascading Style Sheets IMY 110 Theme 6 Cascading Style Sheets 1. Cascading Style Sheets 1.1. Cascading Style Sheets Up to now we have done styling by using the style attribute. e.g. paragraph What

More information

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0 CSI 3140 WWW Structures, Techniques and Standards Markup Languages: XHTML 1.0 HTML Hello World! Document Type Declaration Document Instance Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson

More information

Cascading Style Sheet Quick Reference

Cascading Style Sheet Quick Reference Computer Technology 8/9 Cascading Style Sheet Quick Reference Properties Properties are listed in alphabetical order. Each property has examples of possible values. Properties are not listed if they are

More information

JavaScript: Control Statements I Pearson Education, Inc. All rights reserved.

JavaScript: Control Statements I Pearson Education, Inc. All rights reserved. 1 7 JavaScript: Control Statements I 2 Let s all move one place on. Lewis Carroll The wheel is come full circle. William Shakespeare How many apples fell on Newton s head before he took the hint! Robert

More information

Assignments (4) Assessment as per Schedule (2)

Assignments (4) Assessment as per Schedule (2) Specification (6) Readability (4) Assignments (4) Assessment as per Schedule (2) Oral (4) Total (20) Sign of Faculty Assignment No. 02 Date of Performance:. Title: To apply various CSS properties like

More information

Chapter 11 - JavaScript: Arrays

Chapter 11 - JavaScript: Arrays Chapter - JavaScript: Arrays 1 Outline.1 Introduction.2 Arrays.3 Declaring and Allocating Arrays. Examples Using Arrays.5 References and Reference Parameters.6 Passing Arrays to Functions. Sorting Arrays.8

More information

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations). WDI Fundamentals Unit 4 CSS Cheat Sheet Rule The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations). Declaration A declaration is made

More information

Table of Contents. MySource Matrix Content Types Manual

Table of Contents. MySource Matrix Content Types Manual Table of Contents Chapter 1 Introduction... 5 Chapter 2 WYSIWYG Editor... 6 Replace Text... 6 Select Snippet Keyword... 7 Insert Table and Table Properties... 8 Editing the Table...10 Editing a Cell...12

More information

CSC 121 Computers and Scientific Thinking

CSC 121 Computers and Scientific Thinking CSC 121 Computers and Scientific Thinking Fall 2005 HTML and Web Pages 1 HTML & Web Pages recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language

More information

Tutorial 3: Working with Cascading Style Sheets

Tutorial 3: Working with Cascading Style Sheets Tutorial 3: Working with Cascading Style Sheets College of Computing & Information Technology King Abdulaziz University CPCS-665 Internet Technology Objectives Review the history and concepts of CSS Explore

More information

LING 408/508: Computational Techniques for Linguists. Lecture 14

LING 408/508: Computational Techniques for Linguists. Lecture 14 LING 408/508: Computational Techniques for Linguists Lecture 14 Administrivia Homework 5 has been graded Last Time: Browsers are powerful Who that John knows does he not like? html + javascript + SVG Client-side

More information

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Downloads: Google Chrome Browser (Free) -   Adobe Brackets (Free) - Week One Tools The Basics: Windows - Notepad Mac - Text Edit Downloads: Google Chrome Browser (Free) - www.google.com/chrome/ Adobe Brackets (Free) - www.brackets.io Our work over the next 6 weeks will

More information

CS105 Course Reader Appendix A: HTML Reference

CS105 Course Reader Appendix A: HTML Reference Stanford CS106E Young CS105 Course Reader Appendix A: HTML Reference Tag Index by Section The tags are listed in one of nine sections as shown below: Character Appearance Elements , Bold

More information

Web Design and Development Tutorial 03

Web Design and Development Tutorial 03 Table of Contents Web Design & Development - Tutorial 03... 2 Using and Applying CSS to XHTML... 2 Conventions... 2 What you need for this tutorial... 2 Common Terminology... 3 Parent / Child Elements...

More information

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values 3.1 Introduction - HTML is primarily concerned with content, rather than style - However, tags have presentation properties, for which browsers have default values - The CSS1 cascading style sheet specification

More information

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are HTML CSCI311 Learning Objectives Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are HTML: Hypertext Markup Language HTML5 is new standard that replaces

More information

Final Exam Study Guide

Final Exam Study Guide Final Exam Study Guide 1. What does HTML stand for? 2. Which file extension is used with standard web pages? a..doc b..xhtml c..txt d..html 3. Which is not part of an XHTML element? a. Anchor b. Start

More information

8a. Cascading Style Sheet

8a. Cascading Style Sheet INFS 2150 Introduction to Web Development 8a. Cascading Style Sheet 1 Objectives Concepts of cascading style sheets (CSS). 3 ways of using CSS: inline styles, embedded styles, and external style sheet.

More information

Adding CSS to your HTML

Adding CSS to your HTML Adding CSS to your HTML Lecture 3 CGS 3066 Fall 2016 September 27, 2016 Making your document pretty CSS is used to add presentation to the HTML document. We have seen 3 ways of adding CSS. In this lecture,

More information

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML) HTML & Web Pages recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML) HTML specifies formatting within a page using tags in its

More information

CSS Box Model. Cascading Style Sheets

CSS Box Model. Cascading Style Sheets CSS Box Model Cascading Style Sheets CSS box model Background Width & height Margins & padding Borders Centering content Changing display type (block vs. inline) The Box Model Background Properties Property

More information

CSS Selectors. element selectors. .class selectors. #id selectors

CSS Selectors. element selectors. .class selectors. #id selectors CSS Selectors Patterns used to select elements to style. CSS selectors refer either to a class, an id, an HTML element, or some combination thereof, followed by a list of styling declarations. Selectors

More information

Creating HTML files using Notepad

Creating HTML files using Notepad Reference Materials 3.1 Creating HTML files using Notepad Inside notepad, select the file menu, and then Save As. This will allow you to set the file name, as well as the type of file. Next, select the

More information

1 of 7 11/12/2009 9:29 AM

1 of 7 11/12/2009 9:29 AM 1 of 7 11/12/2009 9:29 AM Home Beginner Tutorials First Website Guide HTML Tutorial CSS Tutorial XML Tutorial Web Host Guide SQL Tutorial Advanced Tutorials Javascript Tutorial PHP Tutorial MySQL Tutorial

More information

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6 CS 350 COMPUTER/HUMAN INTERACTION Lecture 6 Setting up PPP webpage Log into lab Linux client or into csserver directly Webspace (www_home) should be set up Change directory for CS 350 assignments cp r

More information

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015 Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS 8 Oct 2015 What is CSS? o CSS (Style Sheet) defines how HTML elements are formatted and displayed. o It helps you easily change an HTML

More information

COMPSCI 120 Fall 2017 Review Questions for Midterm #2 Professor William T. Verts

COMPSCI 120 Fall 2017 Review Questions for Midterm #2 Professor William T. Verts COMPSCI 120 Fall 2017 Review Questions for Midterm #2 Professor William T. Verts UNIX What do the 9 permission letters represent (rwxrwxrwx)? How do you know if you have the permission or not? What is

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 3 Cascading Style Sheets (CSS) Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you

More information

ABOUT WEB TECHNOLOGY COURSE SCOPE:

ABOUT WEB TECHNOLOGY COURSE SCOPE: ABOUT WEB TECHNOLOGY COURSE SCOPE: The booming IT business across the globe, the web has become one in every of the foremost necessary suggests that of communication nowadays and websites are the lifelines

More information

CMPT 165: More CSS Basics

CMPT 165: More CSS Basics CMPT 165: More CSS Basics Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 14, 2011 1 The Favorites Icon The favorites icon (favicon) is the small icon you see

More information

Hyper Text Markup Language HTML: A Tutorial

Hyper Text Markup Language HTML: A Tutorial Hyper Text Markup Language HTML: A Tutorial Ahmed Othman Eltahawey December 21, 2016 The World Wide Web (WWW) is an information space where documents and other web resources are located. Web is identified

More information

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure? LATIHAN BAB 1 Chapter 1 Self Test 1. What is a web browser? 2. What does HTML stand for? 3. Identify the various parts of the following URL: http://www.mcgrawhill.com/books/ webdesign/favorites.html ://

More information

HTML/XML. HTML Continued Introduction to CSS

HTML/XML. HTML Continued Introduction to CSS HTML/XML HTML Continued Introduction to CSS Entities Special Characters Symbols such as +, -, %, and & are used frequently. Not all Web browsers display these symbols correctly. HTML uses a little computer

More information

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data. Review The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data. It is not the internet! It is a service of the internet.

More information

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS LESSON 1 GETTING STARTED Before We Get Started; Pre requisites; The Notepad++ Text Editor; Download Chrome, Firefox, Opera, & Safari Browsers; The

More information

Introduction to using HTML to design webpages

Introduction to using HTML to design webpages Introduction to using HTML to design webpages #HTML is the script that web pages are written in. It describes the content and structure of a web page so that a browser is able to interpret and render the

More information

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR DYNAMIC BACKGROUND IMAGE Before you begin this tutorial, you will need

More information

JavaScript: Introduction to Scripting

JavaScript: Introduction to Scripting iw3htp2.book Page 194 Wednesday, July 18, 2001 9:01 AM 7 JavaScript: Introduction to Scripting Objectives To be able to write simple JavaScript programs. To be able to use input and output statements.

More information

Chapter 5. Introduction to XHTML: Part 2

Chapter 5. Introduction to XHTML: Part 2 Chapter 5. Introduction to XHTML: Part 2 Tables Attributes of the table element: border: width of the table border in pixels (0 makes all lines invisible) align: horizontal alignment (left, center, or

More information

Chapter 4 A Hypertext Markup Language Primer

Chapter 4 A Hypertext Markup Language Primer Chapter 4 A Hypertext Markup Language Primer XHTML Mark Up with Tags Extensible Hypertext Markup Language Format Word/abbreviation in < > PAIR Singleton (not surround text) />

More information

How to lay out a web page with CSS

How to lay out a web page with CSS Activity 2.6 guide How to lay out a web page with CSS You can use table design features in Adobe Dreamweaver CS4 to create a simple page layout. However, a more powerful technique is to use Cascading Style

More information

introduction to XHTML

introduction to XHTML introduction to XHTML XHTML stands for Extensible HyperText Markup Language and is based on HTML 4.0, incorporating XML. Due to this fusion the mark up language will remain compatible with existing browsers

More information

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4 Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML 4.01 Version: 4.01 Transitional Hypertext Markup Language is the coding behind web publishing. In this tutorial, basic knowledge of HTML will be covered

More information

Table Basics. The structure of an table

Table Basics. The structure of an table TABLE -FRAMESET Table Basics A table is a grid of rows and columns that intersect to form cells. Two different types of cells exist: Table cell that contains data, is created with the A cell that

More information

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5 READSPEAKER ENTERPRISE HIGHLIGHTING 2.5 Advanced Skinning Guide Introduction The graphical user interface of ReadSpeaker Enterprise Highlighting is built with standard web technologies, Hypertext Markup

More information

Cascade Stylesheets (CSS)

Cascade Stylesheets (CSS) Previous versions: David Benavides and Amador Durán Toro (noviembre 2006) Last revision: Manuel Resinas (october 2007) Tiempo: 2h escuela técnica superior de ingeniería informática Departamento de Lenguajes

More information