B. V. Patel Institute of Business Management, Computer & Information Technology, UTU

Size: px
Start display at page:

Download "B. V. Patel Institute of Business Management, Computer & Information Technology, UTU"

Transcription

1 Bachelor of Computer Application (Sem - 6) : Introduction to jquery Question Bank UNIT 1 : Introduction to jquery Short answer questions: 1. List at least four points that how jquery makes tasks easier. 2. Give the symbol in which the jquery object is contained. 3. Which method is used to apply CSS class on element? 4. What is the use of text() method? 5. Write following code using jquery: window.onload = function() { var $p = document.getelementsbytagname( p )*0+; $p.classname = tmpframeworkloaded ; if ($p.innertext) { $p.innertext = jquery successfully loaded and running! ; } else { $p.textcontent = jquery successfully loaded and running! ; } }; 6. When does an event, attached to jquery s ready event, execute? 7. Compare onload event of JavaScript with ready event of jquery. 8. What does MIME stand for? 9. Why markup errors are commonly called the XML yellow screen of death? 10. Give the approaches which can be use to catch errors in CSS. 11. Give the full name of SEO. 12. What does IDE stand for? 13. Give the name of any four IDEs. 14. How can you write comments in JavaScript? 15. How can you write comments in jquery? 16. How can you write a single line comment in jquery? 17. How can you write a multiline comment in jquery? 18. Explain anonymous function in brief with example. Long answer questions: 1. Write down steps for installing and testing jquery using suitable example. 2. List the rules which should be followed when creating XHTML and CSS documents. 3. Explain ID and Class naming conventions. 4. What is name spacing? Why do you need to do it? 5. Explain generic type selectors with example. 6. List the tips to avoid documents being inaccessible. 7. Explain JavaScript conventions in detail. 8. List JavaScript conventions. Explain any one of them in detail. 9. What kind of good practice should be adopted to write clean and consistent code? Explain in detail. 10. Explain control structures with example. 11. Explain One True Brace convention with suitable example. 12. Write HTML code to display a web page as below: Ms. Mayuri Patel & Mr. Hiren Patel Page 1

2 [Hint: paragraph elements are used to write proverbs, Note: make use of inline CSS] 13. Solve problem as in question-12 using internal CSS. 14. Solve problem as in question-12 using external CSS. 15. Write JavaScript to increase and decrease quantity [when user clicks on -1, quantity should be decreased by one and when user clicks on +1, the quantity should be increased by one. The number can be reduced down to 0.] Ms. Mayuri Patel & Mr. Hiren Patel Page 2

3 Multiple choice questions: 1. What does CSS stand for? a. Computer Style Sheets b. Colorful Style Sheets c. Cascading Style Sheets d. Creative Style Sheets 2. What is the correct HTML for referring to an external style sheet? a. <link rel="stylesheet" type="text/css" href="mystyle.css"> b. <stylesheet>mystyle.css</stylesheet> c. <style src="mystyle.css"> 3. Where in an HTML document is the correct place to refer to an external style sheet? a. At the top of the document b. In the <head> section c. At the end of the document d. In the <body> section 4. Which HTML tag is used to define an internal style sheet? a. <script> b. <style> c. <css> 5. Which HTML attribute is used to define inline styles? a. styles b. style c. class d. font 6. Which is the correct CSS syntax? a. body:color=black; b. {body;color:black;} c. {body:color=black;} d. body {color: black;} 7. How do you insert a comment in a CSS file? a. /* this is a comment */ b. // this is a comment c. ' this is a comment Ms. Mayuri Patel & Mr. Hiren Patel Page 3

4 d. // this is a comment // 8. Which property is used to change the background color? a. color b. bgcolor c. background-color 9. How do you add a background color for all <h1> elements? a. h1.all {background-color:#ffffff;} b. h1 {background-color:#ffffff;} c. all.h1 {background-color:#ffffff;} 10. Which CSS property is used to change the text color of an element? a. fgcolor b. color c. text-color d. foreground-color 11. Which CSS property controls the text size? a. text-size b. font-style c. text-style d. font-size 12. What is the correct CSS syntax for making all the <p> elements bold? a. <p style="text-size:bold;"> b. p {font-weight:bold;} c. <p style="font-size:bold;"> d. p {text-size:bold;} 13. How do you display hyperlinks without an underline? a. a {text-decoration:none;} b. a {underline:none;} c. a {text-decoration:no-underline;} d. a {decoration:no-underline;} 14. How do you make each word in a text start with a capital letter? a. text-transform:capitalize b. You can't do that with CSS c. text-transform:uppercase 15. Which property is used to change the font of an element? a. font b. font-family c. Both font-family and font can be used 16. How do you make the text bold? a. style:bold; b. font-weight:bold; c. font:bold; 17. How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel? a. border-width:10px 5px 20px 1px; b. border-width:10px 20px 5px 1px; c. border-width:5px 20px 10px 1px; d. border-width:10px 1px 5px 20px; 18. Which property is used to change the left margin of an element? Ms. Mayuri Patel & Mr. Hiren Patel Page 4

5 a. padding-left b. margin-left c. indent 19. When using the padding property; are you allowed to use negative values? a. Yes b. No 20. How do you make a list that lists its items with squares? a. list-style-type: square; b. list: square; c. list-type: square; 21. Inside which HTML element do we put the JavaScript? a. <scripting> b. <javascript> c. <script> d. <js> 22. What is the correct JavaScript syntax to write "Hello World"? a. response.write("hello World"); b. echo "Hello World"; c. document.write("hello World"); d. ("Hello World"); 23. Where is the correct place to insert a JavaScript? a. The <head> section b. The <body> section c. Both the <head> section and the <body> section are correct 24. What is the correct syntax for referring to an external script called "xxx.js"? a. <script href="xxx.js"> b. <script src="xxx.js"> c. <script name="xxx.js"> 25. How do you write "Hello World" in an alert box? a. alertbox("hello World"); b. msg("hello World"); c. alert("hello World"); d. msgbox("hello World"); 26. How do you create a function in JavaScript? a. function myfunction() b. function:myfunction() c. function=myfunction() 27. How do you call a function named "myfunction"? a. call function myfunction() b. call myfunction() c. myfunction() 28. How to write an IF statement in JavaScript? a. if i=5 then b. if i==5 then c. if (i==5) d. if i=5 29. How to write an IF statement for executing some code if "i" is NOT equal to 5? a. if (i <> 5) b. if i=! 5 then c. if i<>5 d. if (i!= 5) Ms. Mayuri Patel & Mr. Hiren Patel Page 5

6 30. How does a WHILE loop start? a. while (i<=10;i++) b. while (i<=10) c. while i=1 to How does a FOR loop start? a. for (i <= 5; i++) b. for (i = 0; i <= 5; i++) c. for i = 1 to 5 d. for (i = 0; i <= 5) 32. How can you add a comment in a JavaScript? a. //This is a comment b. <!--This is a comment--> c. 'This is a comment 33. How to insert a comment that has more than one line? a. <!--This comment has more than one line--> b. /*This comment has more than one line*/ c. //This comment has more than one line// 34. What is the correct way to write a JavaScript array? a. var txt = new Array(1:"tim",2:"kim",3:"jim") b. var txt = new Array="tim","kim","jim" c. var txt = new Array:1=("tim")2=("kim")3=("jim") d. var txt = new Array("tim","kim","jim") 35. How do you round the number 7.25, to the nearest integer? a. Math.round(7.25) b. round(7.25) c. Math.rnd(7.25) d. rnd(7.25) 36. How do you find the number with the highest value of x and y? a. Math.max(x,y) b. ceil(x,y) c. Math.ceil(x,y) d. top(x,y) 37. What is the correct JavaScript syntax for opening a new window called "w2"? a. w2=window.new(" b. w2=window.open(" 38. How can you detect the client's browser name? a. client.navname b. browser.name c. navigator.appname 39. Which of the following is correct? a. jquery is a JSON Library b. jquery is a JavaScript Library 40. Which sign does jquery use as a shortcut for jquery? a. the % sign b. the $ sign c. the? Sign 41. With jquery, look at the following selector: $("div"). What does it select? a. All div elements b. The first div element 42. Is jquery a library for client scripting or server scripting? a. Client scripting Ms. Mayuri Patel & Mr. Hiren Patel Page 6

7 b. Server scripting 43. What is the correct jquery code to set the background color of all p elements to red? a. $("p").layout("background-color","red"); b. $("p").manipulate("background-color","red"); c. $("p").style("background-color","red"); d. $("p").css("background-color","red"); 44. Which of the following are the features of jquery? a. Efficient query method for finding the set of document elements b. Expressive syntax for referring to elements in the document c. Useful set of methods for manipulating selected elements d. All of the mentioned 45. Which of the following is a single global function defined in the jquery library? a. jquery() b. $() c. Queryanalysis() d. None of the mentioned True or False: 1. The external JavaScript file must contain the <script> tag. 2. JavaScript is the same as Java. 3. jquery uses CSS selectors to select elements. 4. You can substitute dollar sign with JavaScript in jquery code. 5. It is possible to use jquery together with AJAX. 6. The jquery html() method works for both HTML and XML documents. 7. Markup errors typically come about from simple human errors. 8. MIME stands for Multipurpose Internet Markup Extensions. 9. <meta /> element can be used to set MIME type for an XHTML document. 10. The One True Brace convention is the combination of Allman Style and K&R Style. 11. <script> element is used to include external CSS in HTML document. 12. <link> element is used to include external CSS in HTML document. 13. href attribute of <link> element will be set for specifying external JavaScript to be linked in HTML document. 14. href attribute of <link> element will be set for specifying external CSS to be linked in HTML document. 15. src attribute of <link> element will be set for specifying external JavaScript to be linked in HTML document. 16. src attribute of <link> element will be set for specifying external CSS to be linked in HTML document. 17. href attribute of <script> element will be set for specifying external CSS to be linked in HTML document. 18. href attribute of <script> element will be set for specifying external JavaScript to be linked in HTML document. 19. src attribute of <script> element will be set for specifying external CSS to be linked in HTML document src attribute of <script> element will be set for specifying external JavaScript to be linked in HTML document. Fill in the blanks: 1. The file extension for a JavaScript file is. 2. You can substitute dollar sign with in a jquery code. 3. method is used to add CSS class. 4. W3C s markup validation service is located at. Ms. Mayuri Patel & Mr. Hiren Patel Page 7

8 5. attribute of <meta /> element is used to set HTTP headers within the markup documents itself. 6. YSOD stands for. 7. Full form of SEO is. 8. programming statements are the building blocks of any programming language. 9. IDE stands for. 10. The One True Brace convention is the combination of Style and Style. 11. element is used to link external style sheet in your HTML document. 12. attribute of element would be required to set to specify file name if you want to include external CSS. 13. element is used to link external JavaScript in your HTML document. 14. attribute of element would be required to set to specify file name if you want to include external JavaScript UNIT 2 : Filtering a Selection Short questions: 1. What will following statement do if executes? $("body").css("background", "red"); 2. What do you mean by selector? Give example of CSS selector. 3. What does DOM stand for? 4. The dollar sign is both a method and an object justify. 5. When does ready event fire? 6. When does onload event fire? 7. Differentiate ready event and onload event. 8. Which method is used to add click event? 9. What is the use of removeclass( ) method? 10. Write CSS code which positions the <input> element with ID name tmpdialogueclose to the lower right-hand corner of the dialogue, 5 pixels from the bottom and 5 pixels from the left. A fixed width of 100 pixels is to be set. 11. What is the use of addclass( ) method? 12. What is the use of css( ) method? 13. Which method can be used to perform a selection within a selection? 14. List methods that allow selecting siblings based on whether they appear before or after an element. 15. List all of the methods that jquery provides for working with sibling elements. 16. Let s say you want to swap an element s position in the DOM with its preceding sibling. What jquery method will help with that application? 17. What do you mean by ancestors of an element? Give example. 18. Which method is used to select ancestors of an element? 19. If you want to select an element from the DOM using jquery based on an ancestral relationship, which method will you use? 20. Which method is used to select an element s children with jquery? 21. What do you mean by parent of an element? Give an example. 22. What is the use of parent( ) method? 23. What do you mean by children of an element? Give an example. 24. If you have selected an element and want to select one of that element s descendants from the DOM, what method does jquery expose that would give you the results you seek? 25. What is the use of children( ) method? 26. Write a JavaScript that demonstrates how all <li> elements of <ul> element can be selected using jquery s children( ) method. Ms. Mayuri Patel & Mr. Hiren Patel Page 8

9 27. Give an example which demonstrates the use of parent( ) method. Also give an example by passing a selector to parent() method. 28. Give an example which demonstrates the use of children( ) method. Also give an example by passing a selector to children() method. 29. Which method gives you ability to select elements based on what you don t want include in the selection? 30. If you made a selection but later want to remove one or more elements from that selection, what jquery method will you use? 31. What is the use of not() method? 32. Which method is used to select a snippet of the results set? 33. What is the use of slice() method? 34. Explain slice() method in brief using example. 35. How many arguments can be passed in slice() method? How many and which of them are optional? 36. State the use of add() method? 37. If you only want to select a single element from a broader selection, what jquery method will you use? 38. List and explain visibility filters on brief What is the return value of $(selector)? Long questions: 1. Differentiate following two statements: $(document).ready(tmpexample.ready); $(document).ready(tmpexample.ready()); 2. Explain the use of find( ) method with suitable example. 3. Explain siblings( ) method with example. 4. Consider following HTML code: <h4>places in Middle-Earth</h4> <ul id= tmpplaces > <li>mordor</li> <li class= tmprealmofmen >Gondor</li> <li class= tmprealmofmen >Rohan</li> <li>moria</li> <li class= tmprealmofelves >Lothlorien</li> <li>dead Marshes</li> <li class= tmpexamplecity >Minas Tirth</li> </ul> What will happen if following script is executed? var tmpexample = { ready : function() { $( ul#tmpplaces li.tmpexamplecity ).siblings().addclass( tmpsiblings ); } }; $(document).ready(tmpexample.ready); Write what will happen if following script is executed? var tmpexample = { ready : function() { $( ul#tmpplaces li.tmpexamplecity ).siblings(.tmprealmofmen ).addclass( tmpsiblings ); } }; $(document).ready(tmpexample.ready); 5. List methods that allow to select siblings based on whether they appear before or after an element. Explain any one of them in detail. 6. List all of the methods that jquery provides for working with sibling elements. Explain any one in detail. 7. Explain next( ), prev( ), nextall( ), and prevall( ) methods with example. 8. Explain the use parent( ) method. 9. Compare parents() and parent() methods. 10. Explain the use of children( ) method. 11. Explain the use of not() method. 12. Explain the use of slice() method. 13. How would you add elements to a selection using jquery? Explain with example. 14. Explain the use of add() method. Ms. Mayuri Patel & Mr. Hiren Patel Page 9

10 Multiple choice questions: 1. What is the full form of DOM? a. Document Oriented Model b. Documentive Object Model c. Document Object Model d. Documentation Of Model 2. There can be at most arguments in slice() method. a. 1 b. 2 c. 3 d. None of above 3. method is used to add more elements in selection. a. slice() b. addclass() c. add() d. siblings() 4. $(selector).action() What does this jquery syntax format do? a. Select an HTML element and then use HTML to act on it b. Select an HTML element and perform some actin on it c. Perform an action on an element and then select it d. Perform selection and ignore the action 5. What does the dollar sign in jquery statement do? a. It loads the jquery methods b. It loads the DOM c. It loads PHP d. It is used to define or access jquery 6. Here is a jquery code: $(document).ready(function(){}); Why do we place all jquery methods inside this code? a. Because jquery is never compiled b. It shows where jquery starts and ends c. To enable the DOM to load jquery d. To prevent jquery code from running before the document is fully loaded 7. $( #temp ).action() What type of selector is used in the above jquery syntax? a. id selector b. class selector c. name selector d. value selector 8. $(.temp ).action() What type of selector is used in the above jquery syntax? a. id selector b. class selector c. name selector d. value selector 9. Which of the following jquery syntax uses the class selector a. $( #temp ) b. $(.temp ) c. $( class ) d. $( temp ).class 10. Which of the following jquery syntax uses the ID selector? a. $( #temp ) b. $(.temp ) Ms. Mayuri Patel & Mr. Hiren Patel Page 10

11 c. $( class ) d. $( temp ).class 11. Which of the following jquery syntax uses the element selector? a. $( #temp ) b. $(.temp ) c. $( p ) d. None of the above 12. How do we select odd tr elements? a. $( odd:tr ) b. $( :odd tr ) c. $( tr:odd ) d. None of the above 13. Which method is used to add class to an element? a. classremove() b. classadd() c. changeclass() d. addclass() 14. Which method is used to remove class from an element? a. classremove() b. classadd() c. changeclass() d. addclass() 15. $( p ).css( background-color, yellow ); What will happen if above statement is executed? a. Background will be set to yellow in first <p> element. b. Background will be set to yellow in last <p> element. c. Background will be set to yellow in all elements whose class is p. d. Background will be set to yellow in first <p> element. 15. Which is the code that asks for the set of all div elements in a document? a. var divs = $(div); b. var divs = jquery("div"); c. var divs = $("div"); d. var divs = #("div"); 16. Which sign does jquery use as a shortcut for jquery? a. # b. % c. $ d. None 17. $( span ) - What does it select? a. All span elements. b. The first span element. c. Both (a) and (b) d. None of above 18. jquery code to set the background color of all span elements to blue: a. $( span ).style( background-color, blue ); b. $( span ).manipulate( background-color, blue ); c. $( span ).css( background-color, blue ); d. $( span ).layout( background-color, blue ); 19. $( span.intro )-What does it select? a. The first span element with class= intro. Ms. Mayuri Patel & Mr. Hiren Patel Page 11

12 b. The first span element with id= intro. c. All span elements with id= intro. d. All span elements with class= intro. 20. $( div#id1.cl1?) - What does it select? a. The first element with id= cl1? Inside any div element with class=id1? b. All elements with class= cl1? Inside the first div element with id= id1? c. c. All div elements with id= id1? Or class= cl1? True or False: 1. ready event is same as onload or load event. 2. find() method lets you perform a selection within a selection. 3. When using slice() method, the numbering of elements position is offset from zero. 4. The slice() method s first argument is optional. 5. All the arguments of slice() method are optional. 6. Second argument of slice() method is optional. 7. jquery uses CSS selectors and XPath expressions to select elements. 8. jquery s find() method lets you take a selection and refine it. 9. parent > child Selects one or more elements based on a parent, child relationship. 10. parent < child Selects one or more elements based on a parent, child relationship. 11. child > parent Selects one or more elements based on a parent, child relationship. 12. jquery can also be used in place of $ sign. 13. filter(selector) removes all elements that do not match the specified selector. 14. not(selector) removes all elements that do not match the specified selector. 15. filter(selector) removes elements that match the specified selector. 16. not(selector) removes elements that match the specified selector. Fill in the blanks: 1. DOM stands for. 2. method allows to perform a selection within a selection. 3. method is used to select ancestors of an element. 4. method is used to select children of an element. 5. method gives you ability to select elements based on what you don t want included in the selection. 6. The number of argument(s) passed in slice() method is. 7. When making a selection, you may add more elements using method. 8. method is used to select an element from DOM based on an ancestral relationship. 9. removes all elements that do not match the specified selector. 10. removes elements from the selection that match the specified selector. UNIT 3 : Manipulating Content Attribute Short answer questions: 1. How can we change color of a font dynamically without using CSS or css() method? 2. What does following jquery code snippet do? $(document).ready(function(){ $( li ).attr( id, function(){ return tmp + $(this).text(); } }); Consider following HTML code snippet for the same: <BODY> <UL> <li> Monday </li> </UL> Ms. Mayuri Patel & Mr. Hiren Patel Page 12

13 </BODY> 3. Write different syntaxes of attr() method. 4. What is the purpose of callback parameter in attr() method? 5. What will be the output of given jquery code segment: <a href= contactus.html >Contact Us</a> $("a").attr("href",function(idx, oldval){ return oldval + "?city=bardoli"; }); 6. Write code snippet to demonstrate attr() method which takes callback function as a parameter. 7. How can we check that any CSS class is applied to an element or not? Give example. 8. Write a jquery code snippet to remove current class from last <P> element and apply another class to the same. 9. Using which function text inside <textarea> element will be extracted? Give one example. 10. Using which function HTML content inside <textarea> element will be extracted? Give one example. 11. What will be the output of given jquery code segments: <a href= # style="text-decoration:none;color:cyan;"> <font face="cambria"><b>hyperlink</b></font> </a> alert($("a").text()); alert($("a").html()); alert($("a").attr("style")); 12. How before() method is different from prepend() method? Give one example. 13. How after() method is different from append() method? Give one example. 14. Write a jquery code segment to give font color & font face using <FONT> tag to following text inside <h1> element. <h1>introduction to jquery </h1> 15. Write a jquery code segment to apply font-size 7px to all paragraph elements without using css() method. 16. What is the interpretation of following: $(this).replacewith( Sample text ); and $( Sample text ).replaceall(this); 17. What is the basic difference between html() and replacewith() method? Long answer questions: 1. Which jquery method is used to access attribute value of any HTML element? Explain with example. 2. Which jquery method is used to change or set attribute value of any HTML element? Explain in detail by taking example of <IMG> and <A> elements. 3. Which jquery method is used to remove attribute value of any HTML element? Explain in detail by taking example of <UL> element. 4. How can we display five different images using a single <IMG> element dynamically? Write a jquery and HTML code for the same. 5. Consider following HTML code snippet: <body> <p> jquery </p> <p> HTML </p> <p> CSS </p> </body> Write a jquery code snippet to assign following ids to each <p> element dynamically and display the same as alert message. Ms. Mayuri Patel & Mr. Hiren Patel Page 13

14 For first <p> element id will be webjquery, for second webhtml and for third webcss. 6. List methods which are used to apply and remove css class dynamically. Explain each with example. 7. What does following code snippet do? $( ul li ).eq(3).addclass( ulclass ); 8. Explain following code snippet: $( li ).each(function(){ alert($(this).hasclass()); $(this).removeclass( cls ); }; 9. Write syntax of text() and html() methods. Give any two differences between these two. Explain both methods by taking example of <A> element. 10. Write a jquery code to set default text as USERNAME in <input type= text > element. It should be displayed as bold and italic font. 11. How can we delete all contents using text() and html() method? Write syntax for the same. Explain in detail with example. 12. Write an HTML code to design body part of a table with 3 rows and 3 columns. Add header and footer of a table by using before() and after() method & also insert rows before and after available rows using append() and prepend() method. 13. Explain insertbefore() and insertafter() methods with example. 14. What is the difference between wrap() and wrapall() method? Explain with example. 15. What is the similarity and difference between replaceall() and replacewith() & replaceall()? Explain with example. 16. Write an HTML code to design table with 4 rows and 2 columns. Write a jquery code i) to delete all rows ii) to delete entire table 17. What does following code snippet do? $("head").append('<link rel="stylesheet" type="text/css" href="style.css" />'); $("body").prepend('<p>my content goes here</p>'); Multiple choice questions: 1. If user wants to set image path in <IMG> element later on then which method will be used? a) css() b) attr() c) src() d) insertafter() 2. To remove default value from <input> element which of the following method will useful? a) remove() b) empty() c) attr() d) css() 3. Which of the following method is useful to display file path from <A> element? a) src() b) path() c) attr() d) css() 4. What will be the effect of following code segment? [ 1Mark ] alert($("p").html()); <p><b><font color="blue">html() method</font></b></p> a) "html() method" text with blue color. b) "html() method" text with bold effect and blue color. c) <b><font color="blue">html() method</font></b> d) <p><b><font color="blue">html() method</font></b></p> 5. Select a code segment which will return value of <textarea> element. a) $( input#textarea ).text(); b) $( input.textarea ).val() c) $( textarea ).text(); d) $( textarea ).val(); 6. What will be the output of following code segment? <p>this is a paragraph.</p> <p>this is another paragraph.</p> $("p").html("this is a <b>paragraph.</b>"); Ms. Mayuri Patel & Mr. Hiren Patel Page 14

15 a) This is a paragraph. b) This is a paragraph. This is another paragraph This is another paragraph. c) This is a paragraph. d) This is a <b>paragraph.</b> This is a paragraph. This is a <b>paragraph.</b> 7. What will be the output of following code segment? <p>this is a paragraph.</p> <p>this is another paragraph.</p> $("p").text("this is a <b>paragraph.</b>"); a) This is a paragraph. b) This is a paragraph. This is another paragraph This is another paragraph. c) This is a paragraph. d) This is a <b>paragraph.</b> This is a paragraph. This is a <b>paragraph.</b> 8. A newly created ordered list is totally empty. I want to add two list items inside <ol> element. Which of the following method will be the way to do so? a) append() b) prepend() c) before() d) after() 9. A newly created ordered list is contains two list items. I want to add a new list item at first position inside <ol> element. Which of the following method will be the way to do so? a) append() b) prepend() c) before() d) after() 10. I want to give heading to newly create un-ordered list. Which of the following method will be the way to do so? a) append() b) prepend() c) before() d) after() 11. I want to give footer text to newly create form. Which of the following method will be the way to do so? a) append() b) prepend() c) before() d) after() 12. I want to give heading to newly create un-ordered list. Which of the following method will be the way to do so? a) append() b) prepend() c) before() d) after() 13. Which of the following method use a JavaScript object reference to a valid DOM element to wrap elements? a) wrap() b) wrapall() c) wrapinner() d) All of these 14. Consider following HTML code: <style> div { border: 2px solid blue; } p { background: yellow; margin: 4px; } </style> <p>web Server</p> <p>web Browser</p> <p>internet</p> What does the following jquery code do? <script> $( "p" ).wrap( "<div></div>" ); </script> Ms. Mayuri Patel & Mr. Hiren Patel Page 15

16 a) Apply 2px solid blue border to each paragraph individually. b) Apply 2px solid blue border to each paragraph's content individually. c) Apply 2px solid blue border to all paragraphs. d) Apply 2px solid blue border to all paragraphs' content. What does the following jquery code do? <script> $( "p" ).wrapall( "<div></div>" ); </script> a) Apply 2px solid blue border to each paragraph individually. b) Apply 2px solid blue border to each paragraph's content individually. c) Apply 2px solid blue border to all paragraphs. d) Apply 2px solid blue border to all paragraphs' content. What does the following jquery code do? <script> $( "p" ).wrapinner( "<div></div>" ); </script> a) Apply 2px solid blue border to each paragraph individually. b) Apply 2px solid blue border to each paragraph's content individually. c) Apply 2px solid blue border to all paragraphs. d) Apply 2px solid blue border to all paragraphs' content. True or False: 1. Following jquery code snippet will removes CSS class from paragraph element. $document.ready(function(){ $("p").class("temp"); }); 2. Following jquery code snippet which adds CSS class to paragraph element. $(document.ready(function(){ $("p").class("temp"); }); 3. empty() method removes element completely. 4. text() and replacewith() method will only change content inside element. 5. html() will return actual HTML string including tags. 6. The following code snippet will insert a new list item with content "Item 1" in empty ordered list. $("ol").prepend($("<li></li>").text("item 1")); 7. jquery s html() and replacewith() method serves the same purpose. 8. jquery s replaceall() method works similarly to jquery s insertbefore() and insertafter() methods. 9. We can dynamically add <HEAD> section in HTML document structure. Fill in the blanks: 1. To set id attribute of an element method is used. 2. hasclass() method returns when particular class is not applied to element. 3. method removes child elements from the selected element. 4. method removes child as well as parent elements. 5. To increase height or width of an image method will be used. 6. method set text of an element and also make it as an italic. 7. wrap() method wraps. wrapall() method wraps. wrapinner() method wraps. Ms. Mayuri Patel & Mr. Hiren Patel Page 16

17 8. jquery s method replaces a selection with whatever HTML content that you specify. 9. If you want to insert existing content within a document within a document before another existing content within a document then method might be best suitable. 10. If you want to insert existing content within a document within a document after another existing content within a document then method might be best suitable. 11. To specify external CSS file dynamically, jquery method will be useful. Ms. Mayuri Patel & Mr. Hiren Patel Page 17

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2014

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2014 B.C.A. (6 th Semester) 030010602 Introduction To jquery Question Bank UNIT: Introduction to jquery Long answer questions 1. Write down steps for installing and testing jquery using suitable example. 2.

More information

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013 CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013 Part I. (50%) Multiple Guess Choice. 1. What does CSS stand for? a. Creative Style Sheets b. Computer Style Sheets c. Cascading Style

More information

CSS Quiz Result. 2) Where in an HTML document is the correct place to refer to an external style sheet?

CSS Quiz Result. 2) Where in an HTML document is the correct place to refer to an external style sheet? CSS Quiz Result 1) What does CSS stand for? a) Creative Style Sheets b) Computer Style Sheets c) Cascading Style Sheets - correct answer d) Cascade Style Sheets e) Colorful Style Sheets 2) Where in an

More information

Web Technology. Assignment 3. Notes: This assignment is individual assignment, every student should complete it by himself.

Web Technology. Assignment 3. Notes: This assignment is individual assignment, every student should complete it by himself. Web Technology Assignment 3 Due: Next Section. (one day before if you submit by email) Notes: This assignment is individual assignment, every student should complete it by himself. 1. Choose the correct

More information

Client Side Concepts Quiz Solution

Client Side Concepts Quiz Solution Client Side Concepts Quiz Solution Who invented the World Wide Web? A) Tim Berners Lee B) Bruce Lee C) Brett Lee D) Jerry Kabell Who is making the Web standards? A) Microsoft B) Mozilla C) The World Wide

More information

Tizen Web UI Technologies (Tizen Ver. 2.3)

Tizen Web UI Technologies (Tizen Ver. 2.3) Tizen Web UI Technologies (Tizen Ver. 2.3) Spring 2015 Soo Dong Kim, Ph.D. Professor, Department of Computer Science Software Engineering Laboratory Soongsil University Office 02-820-0909 Mobile 010-7392-2220

More information

CmpSci 120 Exam 2 Examples

CmpSci 120 Exam 2 Examples CmpSci 120 Exam 2 Examples General format of Exam 2: 10 true-false @ 2 pts each (20 total) 10 multiple choice @ 2 pts each (20 total) 4 short answer questions @ 5 pts each (20 total) 2 medium-long questions

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

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

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

First Name Last Name CS-081 March 23, 2010 Midterm Exam

First Name Last Name CS-081 March 23, 2010 Midterm Exam First Name Last Name CS-081 March 23, 2010 Midterm Exam Instructions: For multiple choice questions, circle the letter of the one best choice unless the question explicitly states that it might have multiple

More information

Cascading Style Sheets Level 2

Cascading Style Sheets Level 2 Cascading Style Sheets Level 2 Course Objectives, Session 1 Level 1 Quick Review Chapter 6 Revisit: Web Fonts Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your Site s Navigation Begin

More information

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes Course Title Course Code WEB DESIGNING TECHNOLOGIES DCE311 Lecture : 3 Course Credit Practical : Tutorial : 0 Total : 5 Course Learning Outcomes At end of the course, students will be able to: Understand

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

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

ITA430 Solved & Unsolved MCQs BY

ITA430 Solved & Unsolved MCQs BY ITA430 Solved & Unsolved MCQs BY Question No: 1 ( Marks: 1 ) - Please choose one If 140.57 is network address and 220.200 is machine address then which class of network it is? A B C D Question No: 2 (

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

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

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

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

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources HTML + CSS ScottyLabs WDW OVERVIEW What are HTML and CSS? How can I use them? WHAT ARE HTML AND CSS? HTML - HyperText Markup Language Specifies webpage content hierarchy Describes rough layout of content

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

Zen Garden. CSS Zen Garden

Zen Garden. CSS Zen Garden CSS Patrick Behr CSS HTML = content CSS = display It s important to keep them separated Less code in your HTML Easy maintenance Allows for different mediums Desktop Mobile Print Braille Zen Garden CSS

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

Index. Boolean value, 282

Index. Boolean value, 282 Index A AJAX events global level ajaxcomplete, 317 ajaxerror, 316 ajaxsend, 316 ajaxstart, 316 ajaxstop, 317 ajaxsuccess, 316 order of triggering code implementation, 317 display list, 321 flowchart, 322

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

JQuery WHY DIDN T WE LEARN THIS EARLIER??!

JQuery WHY DIDN T WE LEARN THIS EARLIER??! JQuery WHY DIDN T WE LEARN THIS EARLIER??! Next couple of weeks This week: Lecture: Security, jquery, Ajax Next Week: No lab (Easter) I may post a bonus (jquery) lab No quiz (yay!) Maybe a bonus one? Snuneymuxw

More information

Basic CSS Lecture 17

Basic CSS Lecture 17 Basic CSS Lecture 17 Robb T. Koether Hampden-Sydney College Wed, Feb 21, 2018 Robb T. Koether (Hampden-Sydney College) Basic CSSLecture 17 Wed, Feb 21, 2018 1 / 22 1 CSS 2 Background Styles 3 Text Styles

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

Block & Inline Elements

Block & Inline Elements Block & Inline Elements Every tag in HTML can classified as a block or inline element. > Block elements always start on a new line (Paragraph, List items, Blockquotes, Tables) > Inline elements do not

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

DAY 4. Coding External Style Sheets

DAY 4. Coding External Style Sheets DAY 4 Coding External Style Sheets LESSON LEARNING TARGETS I can code and apply an embedded style sheet to a Web page. I can code and apply an external style sheet to multiple Web pages. I can code and

More information

CSS: Cascading Style Sheets

CSS: Cascading Style Sheets What are Style Sheets CSS: Cascading Style Sheets Representation and Management of Data on the Internet, CS Department, Hebrew University, 2007 A style sheet is a mechanism that allows to specify how HTML

More information

The Benefits of CSS. Less work: Change look of the whole site with one edit

The Benefits of CSS. Less work: Change look of the whole site with one edit 11 INTRODUCING CSS OVERVIEW The benefits of CSS Inheritance Understanding document structure Writing style rules Attaching styles to the HTML document The cascade The box model CSS units of measurement

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

CSS: Cascading Style Sheets

CSS: Cascading Style Sheets CSS: Cascading Style Sheets Computer Science and Engineering College of Engineering The Ohio State University Lecture 13 Evolution of CSS MIME type: text/css CSS 1 ('96): early recognition of value CSS

More information

To link to an external stylesheet, the link element is placed within the head of the html page:

To link to an external stylesheet, the link element is placed within the head of the html page: CSS Basics An external style sheet is simply a text file (use BBEdit or Textwrangler) containing style rules, saved with the.css extension. It s best practice to keep style sheets for a site grouped within

More information

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from BEFORE CLASS If you haven t already installed the Firebug extension for Firefox, download it now from http://getfirebug.com. If you don t already have the Firebug extension for Firefox, Safari, or Google

More information

CSS. https://developer.mozilla.org/en-us/docs/web/css

CSS. https://developer.mozilla.org/en-us/docs/web/css CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties

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

HTMLnotesS15.notebook. January 25, 2015

HTMLnotesS15.notebook. January 25, 2015 The link to another page is done with the

More information

CS7026. Introduction to jquery

CS7026. Introduction to jquery CS7026 Introduction to jquery What is jquery? jquery is a cross-browser JavaScript Library. A JavaScript library is a library of pre-written JavaScript which allows for easier development of JavaScript-based

More information

HTML and CSS: An Introduction

HTML and CSS: An Introduction JMC 305 Roschke spring14 1. 2. 3. 4. 5. The Walter Cronkite School... HTML and CSS: An Introduction

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

Cascading Style Sheet

Cascading Style Sheet Extra notes - Markup Languages Dr Nick Hayward CSS - Basics A brief introduction to the basics of CSS. Contents Intro CSS syntax rulesets comments display Display and elements inline block-level CSS selectors

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

Cascading Style Sheets

Cascading Style Sheets 4 TVEZEWXYHMNR LSTVSKVEQY-RJSVQEXMOENITSHTSVSZ RETVSNIOXIQ RERGSZER Q^)ZVSTWO LSWSGM PR LSJSRHYEVS^TS XYLPEZR LSQ WXE4VEL] 4VELE)9-RZIWXYNIQIHSZE% FYHSYGRSWXM CSS Cascading Style Sheets Lukáš Bařinka barinkl@fel.cvut.cz

More information

Lab Introduction to Cascading Style Sheets

Lab Introduction to Cascading Style Sheets Lab Introduction to Cascading Style Sheets For this laboratory you will need a basic text editor and a browser. In the labs, winedt or Notepad++ is recommended along with Firefox/Chrome For this activity,

More information

CE212 Web Application Programming Part 2

CE212 Web Application Programming Part 2 CE212 Web Application Programming Part 2 22/01/2018 CE212 Part 2 1 JavaScript Event-Handlers 1 JavaScript may be invoked to handle input events on HTML pages, e.g.

More information

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1 CREATING A WEBSITE USING CSS Mrs. Procopio CTEC6 MYP1 HTML VS. CSS HTML Hypertext Markup Language CSS Cascading Style Sheet HTML VS. CSS HTML is used to define the structure and content of a webpage. CSS

More information

jquery Tutorial for Beginners: Nothing But the Goods

jquery Tutorial for Beginners: Nothing But the Goods jquery Tutorial for Beginners: Nothing But the Goods Not too long ago I wrote an article for Six Revisions called Getting Started with jquery that covered some important things (concept-wise) that beginning

More information

week8 Tommy MacWilliam week8 October 31, 2011

week8 Tommy MacWilliam week8 October 31, 2011 tmacwilliam@cs50.net October 31, 2011 Announcements pset5: returned final project pre-proposals due Monday 11/7 http://cs50.net/projects/project.pdf CS50 seminars: http://wiki.cs50.net/seminars Today common

More information

A Balanced Introduction to Computer Science, 3/E

A Balanced Introduction to Computer Science, 3/E A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN 978-0-13-216675-1 Chapter 2 HTML and Web Pages 1 HTML & Web Pages recall: a Web page is

More information

for Lukas Renggli ESUG 2009, Brest

for Lukas Renggli ESUG 2009, Brest for Lukas Renggli ESUG 2009, Brest John Resig, jquery.com Lightweight, fast and concise - Document traversing - Event Handling - AJAX Interaction - Animating High-level, themeable widgets on top of JQuery.

More information

Exercise. (1) Which of the following can not be used as the scope when using a JavaBean with JSP? a. application b. session c. request d.

Exercise. (1) Which of the following can not be used as the scope when using a JavaBean with JSP? a. application b. session c. request d. Exercise 1. Choose the best answer for each of the following questions. (1) Which of the following can not be used as the scope when using a JavaBean with JSP? a. application b. session c. request d. response

More information

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CSS. Lecture 16 COMPSCI 111/111G SS 2018 CSS Lecture 16 COMPSCI 111/111G SS 2018 No CSS Styles A style changes the way the HTML code is displayed Same page displayed using different styles http://csszengarden.com Same page with a style sheet

More information

Student, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6

Student, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6 Student, Perfect Final Exam May 25, 2006 ID: 9999. Exam No. 3193 CS-081/Vickery Page 1 of 6 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on

More information

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model) INTRO TO CSS RECAP HTML WHAT IS CSS ADDING CSS TO YOUR HTML DOCUMENT CSS IN THE DIRECTORY TREE CSS RULES A FEW CSS VALUES (colour, size and the box model) CSS SELECTORS SPECIFICITY WEEK 1 HTML In Week

More information

CPET 499/ITC 250 Web Systems. Topics

CPET 499/ITC 250 Web Systems. Topics CPET 499/ITC 250 Web Systems Introduction to Cascading Style Sheet (CSS) Text Book: * Chapter 3: Cascading Style Sheet, Fundamentals of Web Development, 2015, by Randy Connolly and Ricardo Hoar, published

More information

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2 Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!

More information

Document Object Model. Overview

Document Object Model. Overview Overview The (DOM) is a programming interface for HTML or XML documents. Models document as a tree of nodes. Nodes can contain text and other nodes. Nodes can have attributes which include style and behavior

More information

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University

More information

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Web Development & Design Foundations with HTML5 Ninth Edition Chapter 3 Configuring Color and Text with CSS Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of links

More information

SEEM4570 System Design and Implementation Lecture 04 jquery

SEEM4570 System Design and Implementation Lecture 04 jquery SEEM4570 System Design and Implementation Lecture 04 jquery jquery! jquery is a JavaScript Framework.! It is lightweight.! jquery takes a lot of common tasks that requires many lines of JavaScript code

More information

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax CSS CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style Sheets can save a lot of work External Style Sheets

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 Hyperlinks (Links)

HTML Hyperlinks (Links) WEB DESIGN HTML Hyperlinks (Links) The HTML tag defines a hyperlink. A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. When you move the

More information

CSS Lecture 16 COMPSCI 111/111G SS 2018

CSS Lecture 16 COMPSCI 111/111G SS 2018 No CSS CSS Lecture 16 COMPSCI 111/111G SS 2018 Styles Astyle changes the way the HTML code is displayed Same page displayed using different styles Same page with a style sheet body font-family: sans-serif;

More information

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I INTRODUCTION: UNIT - I HTML stands for Hyper Text Markup Language.HTML is a language for describing web pages.html is a language for describing web pages.html instructions divide the text of a document

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

Chapter 4 CSS basics

Chapter 4 CSS basics Sungkyunkwan University Chapter 4 CSS basics Prepared by J. Lee and H. Choo Web Programming Copyright 2000-2018 Networking Laboratory 1/48 Copyright 2000-2012 Networking Laboratory Chapter 4 Outline 4.1

More information

CIS 228 (Spring, 2012) Final, 5/17/12

CIS 228 (Spring, 2012) Final, 5/17/12 CIS 228 (Spring, 2012) Final, 5/17/12 Name (sign) Name (print) email I would prefer to fail than to receive a grade of or lower for this class. Question 1 2 3 4 5 6 7 8 9 A B C D E TOTAL Score CIS 228,

More information

ITNP43: HTML Lecture 4

ITNP43: HTML Lecture 4 ITNP43: HTML Lecture 4 Niederst, Part III (3rd edn) 1 Style versus Content HTML purists insist that style should be separate from content and structure HTML was only designed to specify the structure and

More information

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018) COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018) RAMANA ISUKAPALLI RAMANA@CS.COLUMBIA.EDU 1 LECTURE-1 Course overview See http://www.cs.columbia.edu/~ramana Overview of HTML Formatting, headings,

More information

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery. HTML5/CSS3/JavaScript Programming Course Summary Description This class is designed for students that have experience with basic HTML concepts that wish to learn about HTML Version 5, Cascading Style Sheets

More information

Proper_Name Final Exam December 21, 2005 CS-081/Vickery Page 1 of 4

Proper_Name Final Exam December 21, 2005 CS-081/Vickery Page 1 of 4 Proper_Name Final Exam December 21, 2005 CS-081/Vickery Page 1 of 4 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on any exam or quiz. INSTRUCTIONS:

More information

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS cristina gena dipartimento di informatica cgena@di.unito.it http://www.di.unito.it/~cgena/ materiale e info sul corso http://www.di.unito.it/~cgena/teaching.html

More information

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em> Introduction to CSS Review Question 1 Which tag is used to create a link to another page? 1. 2. 3. 4. Review Question 1 Which tag is used to create a link to another page? 1. 2.

More information

jquery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation

jquery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation jquery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation Element Selectors Use CSS selectors to select HTML elements Identify them just as you would in style sheet Examples:

More information

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: You may create your button in GIMP. Mine is 122 pixels by 48 pixels. You can use whatever

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

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

INTRODUCTION TO CSS. Mohammad Jawad Kadhim INTRODUCTION TO CSS Mohammad Jawad Kadhim WHAT IS CSS Like HTML, CSS is an interpreted language. When a web page request is processed by a web server, the server s response can include style sheets,

More information

Three Ways to Use CSS:

Three Ways to Use CSS: Introduction to CSS CSS Defined: Short for "Cascading Style Sheets". Determines how the elements in our XHTML documents are displayed and formatted. Designed to separate the content of a web page from

More information

CS197WP. Intro to Web Programming. Nicolas Scarrci - February 13, 2017

CS197WP. Intro to Web Programming. Nicolas Scarrci - February 13, 2017 CS197WP Intro to Web Programming Nicolas Scarrci - February 13, 2017 Additive Styles li { color: red; }.important { font-size: 2em; } first Item Second

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

COMS 359: Interactive Media

COMS 359: Interactive Media COMS 359: Interactive Media Agenda Review CSS Preview Review Transparent GIF headline Review JPG buttons button1.jpg button.psd button2.jpg Review Next Step Tables CSS Introducing CSS What is CSS? Cascading

More information

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS CSS Overview Part I: Portraying the Internet as a collection of online information systems Part II: Design a website using HTML/XHTML & CSS XHTML validation What is wrong?

More information

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Presented by Roel Fermont 1 Today more than ever, Cascading Style Sheets (CSS) have a dominant place in online business. CSS

More information

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: CREATING AN HTML LIST Most horizontal or vertical navigation bars begin with a simple

More information

CSE 154 LECTURE 3: MORE CSS

CSE 154 LECTURE 3: MORE CSS CSE 154 LECTURE 3: MORE CSS Cascading Style Sheets (CSS): ... ... HTML CSS describes the appearance and layout of information

More information

CSS for Styling CS380

CSS for Styling CS380 1 CSS for Styling The good, the bad and the 2 ugly! shashdot. News for nerds!! You will never, ever be bored here!

More information

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript. Extra notes - Markup Languages Dr Nick Hayward HTML - DOM Intro A brief introduction to HTML's document object model, or DOM. Contents Intro What is DOM? Some useful elements DOM basics - an example References

More information

Comp 426 Midterm Fall 2013

Comp 426 Midterm Fall 2013 Comp 426 Midterm Fall 2013 I have not given nor received any unauthorized assistance in the course of completing this examination. Name: PID: This is a closed book exam. This page left intentionally blank.

More information

CSS means Cascading Style Sheets. It is used to style HTML documents.

CSS means Cascading Style Sheets. It is used to style HTML documents. CSS CSS means Cascading Style Sheets. It is used to style HTML documents. Like we mentioned in the HTML tutorial, CSS can be embedded in the HTML document but it's better, easier and neater if you style

More information

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions Text and Layout Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11 This presentation 344 345 Text in Graphics Maximum flexibility obtained by treating text as graphics and manipulating

More information

Website Development with HTML5, CSS and Bootstrap

Website Development with HTML5, CSS and Bootstrap Contact Us 978.250.4983 Website Development with HTML5, CSS and Bootstrap Duration: 28 hours Prerequisites: Basic personal computer skills and basic Internet knowledge. Course Description: This hands on

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

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

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