Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801346
Author: FELKE-MORRIS
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 7, Problem 6MC
Program Description Answer
Fragment identifier:
Fragment identifier is passed as parameter to the created object. The attribute that defines the fragment identifier in a page is the “id” attribute.
Hence, the correct answer is option “A”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
a programmer wants to have a video file on his website the video should start playing as soon as user opens a web page on which the video has been inserted the blank element will be used to process information to the video file
use HTML and Javascript
Give two different files of HTML and Javascript
Display a random quote when the page loads. Use a JSON file that contains 10 different famous quotes and their author that you would use to select the random quote.
The name of the file, "index.html," stands out for a number of reasons.
Chapter 7 Solutions
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Ch. 7.2 - Prob. 1CPCh. 7.2 - Prob. 2CPCh. 7.2 - Prob. 3CPCh. 7.10 - Prob. 1CPCh. 7.10 - Prob. 2CPCh. 7.10 - Prob. 3CPCh. 7 - Prob. 1MCCh. 7 - Prob. 2MCCh. 7 - Prob. 3MCCh. 7 - Prob. 4MC
Ch. 7 - Prob. 5MCCh. 7 - Prob. 6MCCh. 7 - Prob. 7MCCh. 7 - Prob. 8MCCh. 7 - Prob. 9MCCh. 7 - Prob. 10MCCh. 7 - Prob. 11FIBCh. 7 - Prob. 12FIBCh. 7 - Prob. 13FIBCh. 7 - Prob. 14FIBCh. 7 - Prob. 15FIBCh. 7 - Prob. 1AYKCh. 7 - Prob. 2AYKCh. 7 - Prob. 3AYKCh. 7 - Prob. 1HOECh. 7 - Prob. 2HOECh. 7 - Prob. 3HOECh. 7 - Prob. 4HOECh. 7 - Prob. 5HOECh. 7 - Prob. 6HOECh. 7 - Prob. 7HOECh. 7 - Prob. 8HOECh. 7 - Prob. 9HOECh. 7 - Prob. 10HOECh. 7 - Prob. 1WRCh. 7 - Prob. 1FWD
Knowledge Booster
Similar questions
- In javascript define a function that takes a numeric argument, increments that argument, and then returns it to the caller. Call the function from within the <BODY> section of a page, and display the result on the screen. Please make sure the code runsarrow_forwardDesign the following page Select a background Color: red red green blue • When user select any color from the drop-down- list, the background color of the page should change to selected color. - Develop a javascript function!arrow_forward1) You need to use JavaScript to modify a repeated element of unknown count on the page that is different on each page visit. What is the best way to do this?: A) Use document.getElementsByTagName(), then use the return like an array. B) Manually label each element Id, then use document.getElementById(). C) Give the same Id to each element, then use getElementById() like an array. D) Use the highest common parent element, then use recursive search. 2) You are in charge of writing a JavaScript code to tell the user how well his/her password is as it is typed in. What is the best approach? A) Add onsubmit to submit button. Show message if password is weak and return false. B) Add onsubmit to submit button. Disable update button if password is too weak. C) Add onchange to password field. Update a message as password is changed. D) Add onfocusout to password field. Update a message as password is changed 3) What event can we use to animate a picture once it is downloaded?: A) onchange B)…arrow_forward
- sys.stderr = sys.stdouts form = cgi.FieldStorage() print('Content-type: text/html\n') if debugmode: cgi.print_form(form). Results: AttributeError: module 'sys' has no attribute 'stdouts' what is incorrectarrow_forwardExecute the following programs: 1) Write an HTML program code for the FORM given below: ESTITENT DTTATTS LONI IN I PASSWORD SELECT GENDER: Male Teale STLECT SUBIECTS C'ruativi|ndia Bubmt 2) Write a java script Program to display an ALERT box using ONCLICK event. 3) Write an HTML program to create an EXTERNAL Style sheet using element and format it with the following properties : a) Body- font-size ,font-family ,background-color ,color H1- color: red; border-width:1; border:solid; text-align:center b) Display your name using element. Write some information about your Favourite TEACHER using element.arrow_forwardJavaBeans and JDBC The exercises listed below are intended to provide an instructive way to get used to JavaBeans and JDBC. Complete all three exercises. Exercise 1 – JavaBeans, Self-Call a) Write a page “MiniAdd.jsp” that carries out simple additions of two numbers. The JSP should: present a form where the user can specify two numbers, contain a submit button that posts back to the same page (i.e. “miniadd.jsp”), show the result of the requested addition, and also show the sum of all the additions carried out by the user so far. Create and use a JavaBean (“SumBean”) to validate user input and to perform the addition. The same bean should also be used to store the sum of all additions. (Consider that the page does not receive input parameters when it is called the first time.) b) Add a “Reset Button” to the page with which the user can reset the sum of all additions.arrow_forward
- Print a paragraph that is a description of a book; include the title of the book as well as its author. Names and titles should be underlined, adjectives should be italicized and bolded. Solution: HTML Tags Output:arrow_forwardComplete the following practice problems and submit .html files containing your solutions: Add several images to a page. Use a loop to attach a click event handler to each of the images. When one of the images is clicked, add a border around it using CSS. When another image is clicked, the border from the previous image should be removed, in addition to adding the new border. Create a function that will let the user edit the strings in an array. Start by passing an array of strings into the function. The function should render a text input box on the page, each containing a string from the array. When a "save" button is pressed, update the content of the array and print the entire array with console.log(). You don't need to support adding or removing elements from the array, just editing the existing strings.arrow_forwardHands-On Project 1-3In this project, you will explore how to write text to a specific element in your web page in response to theonclick event handler. To complete the exercise, you will apply the following JavaScript expression:document.getElementById('id').innerHTML = 'text';where id is the value of the id attribute for the page element and text is the text of the content to be writteninto the element. You will use this expression to enhance a web form by displaying the message “Thank you foryour order” when the user clicks the Submit button. Figure 1-25 shows the completed web page.Do the following:1. Use your code editor to open project01-03_txt.html from the HandsOnProject_01 folder. Enter your name and the date in the comment section of the document and save it as project01-03.html.2. Scroll down to the bottom of the file and locate the input element for the Submit button.3. Add an onclick event handler to the <input> tag that changes the innerHTML value of the page element…arrow_forward
- You must add a canvas. Then ask the user to click ok if he enjoyed 2020 and cancel if he did not. Based on the answer you must draw the answer (Yes or No) inside the canvas. Make your canvas much prettier by adding keyframe animation and change its color on 0% to yellow, 50% completion to blue and 100% to red. html O File | CUsers/arwak/OneDrive/Desktop/practical.html Mobile Ag Hom This page says Did you enjoyed 2020 OK Cancet O File | C:/Users/arwak/OneDrive, Apps Mobile Application... Blackboard Lea Yes ARABC (OMANarrow_forwardJavaScript Assignment For this assignment you are only to use external CSS and JavaScript. This assignment shouldhave no templates or frameworks. The Fruits to be used are Apple, Orange, Pear, and Pineapple. Write the code in a way that allows it to pull the images from a folder inside the main folder named “images." The file names are as follows Apple.png, Orange.png, Pear.png, and Pineapple.png. You are to create a child's game. The game will have a title in the head of the boilerplate withyour name. The name of the game will be Fruit Game which will need to be included in theheader of the browser using a h1 element. You will display an image of a fruit. Under the imagethere will be room for text for the name of the fruit but not displayed at the start. You will havefour buttons with names for the fruits available. When the button with the fruit name is clickedthe name of the fruit will appear under the image of the fruit. If the button and the name of thefruit is the same then you…arrow_forwardInstruction: Please write this code in javascript and let me know if there is any issue Question: 1. Use our HTML template to create a file named as your name (for example if your name is john the file name would be "john.html"). Make sure to update the metadata (title, author, description...) accordingly. This HTML file should contain an h1 heading element that includes your full name and student number. 2. Create an empty element with an id of your name. This element should be used to display your output from JavaScript. 3. Create a JavaScript file named your studentid.js that performs the following: a. Create a function that will count the number of even numbers contained in the array that is passed to this function. The array may contain values of any type, but you only count the even numbers. This function will return a number (number of instances of even numbers found in the array). Needless to say, the function will return zero, if the array is empty or no even numbers are…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage