Basics of Web Design: HTML5 & CSS3 (3rd Edition)
3rd Edition
ISBN: 9780133970746
Author: Terry Felke-Morris, Terry Morris
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 5, Problem 3HOE
Program Plan Intro
- Include the HTML tag using “<html>”.
- Include the image tag “<img>” with source of image “primelogo.gif” with height and width attributes. The pixels of height attribute is “100” and pixels of width attribute is “650”. The alternative text for the image is “Prime Logo”.
- Close the file using “</html>” tag.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
in javascript Create a function that will load a new image from the website https://cataas.com/cat every 10 seconds, and will stop this interval when the SPACEBAR is pressed.
Imagine that the HTML file for your web page project includes a div element with the id value “cupcake” and you are writing a function to display and rearrange some images within that element. What JavaScript statement would you place in the blank to move the last image within the ccFrostingelement to the beginning of the line and shift the other images one position toward the end?
let frostingFiles = ["pinkFr.jpg", "blueFr.jpg", "chocFr.jpg"]
let frostingCount = frostingFiles.length;
function frostCupcake() {
let cupCake = document.getElementById("cupcake");
let ccFrosting = document.createElement("div");
cupCake.appendChild(ccFrosting);
ccFrosting.id = "ccFrosting";
for (let i = 0; i < frostingCount; i++) {
let image = document.createElement("img");
image.src = frostingFiles[i];
ccFrosting.appendChild(image);
}
function shuffleBack() {
_____
}
}
a.
ccFrosting.appendChild(ccFrosting.firstElementChild);
b.…
Question:
Tumbling Dice Program - PHP/HTML/CSS
Question: Roll two dice 1,000 times. Create a program that simulates the rolling of dice 500 times.
Record the result of each roll that equals 7 (e.g. 1+6=7, 2+5=7, 3+4=7) and display totals for the total
number of rolls that equal 7.
This needs to have an html page, php page, and css page
The result, after executing the program, should look similar to:
"The number of sevens (7) that occured in 500 dice rolls was: 165"
Chapter 5 Solutions
Basics of Web Design: HTML5 & CSS3 (3rd Edition)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Using HTML and Javascript inside <body> section use tag to create a vector graphic area with 200 points as width and height and xmlns ="http://www.w3.org/2000/svg" and then create a blue circle of radius 50 at the location (100,100) inside. 5) Write JavaScript so that when the user clicks on the circle, the circle disappears.arrow_forwardThe following code adds a button to a web page. (It doesn't do anything.) Where is the button added? let body = document.body; let button = document.createElement('button'); button.innerHTML = "Press Here"; %3D body.prepend (button); a. Before the body element. O b. At the end of the body of the document, after anything else on the page. In the body of the document, before anything else on the page.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
- Suppose there is a text box on your browser window called FirstName. When you scroll up or down, the text box does not move at all while other elements on the page do move. What value for the position property would FirstName have? A) absolute B) relative C) fixed D) staticarrow_forwardWrite a program in html Create a CSS style for an H3 element, where: - colour is blue (in RGB format) - text aligned to left - text decoration red wavy underline - text transformed to uppercasearrow_forwardMake the button timer and reset work, also make the cards to be flipped over and make them to be in random order, when you match two correct cards let them be flipped, if they are not matching flipdem back. Do this in JavaScript. html code: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="start.css"> <title></title> </head> <body> <div class="whole"> <div class="images"><img src="1.png"></div> <div class="images" ><img src="final.jpg"></div> <div class="images"><img src="2.png"></div> <div class="images"><img src="final.jpg"></div> <div class="images"><img src="final.jpg"></div> <div class="images"><img src="4.png"></div> <div class="images"><img src="final.jpg"></div> <div class="images"><img src="3.png"></div> <div…arrow_forward
- Using Javascript Write a page that displays a balloon (using the balloon emoji, ?). When you press the up arrow, it should inflate (grow) 10 percent, and when you press the down arrow, it should deflate (shrink) 10 percent. You can control the size of text (emoji are text) by setting the font-size CSS property (style.fontSize) on its parent element. Remember to include a unit in the value—for example, pixels (10px). The key names of the arrow keys are "ArrowUp" and "ArrowDown". Make sure the keys change only the balloon, without scrolling the page.arrow_forwardA Read aloud Draw F Highlight Create a web page which contains four links. These links are NOT underlined when user opens it. When user moves the mouse to hover on the link, its background color will be changed to yellow. When user clicks on the link it will go to the corresponding web site. In the example below The following is when hover on Google. Note its background color changed to Yellow. Here are my favorite sites Click on a name to go to that page. Facebook Twitter Yahoo Googlearrow_forwardWrite an HTML program to create an EXTERNAL Style sheet using <style> element and format it with the following properties : a) Body- font-size ,font-family ,background-color ,color b) H1- color: red; border-width:1; border:solid; text-align:center Display your name using <H1 > element. Write some information about your Favourite TEACHER using <body> element.arrow_forward
- Write and HTML page to display a simple slot machine: The slot machine has 3 reels. Each reel has the following fruits: Grape Watermelon Orange Peach Lemon Apple Cherry Strawberry Pear Add a <button element with the text "Spin!" on the page When the user clicks the button, pick a random fruit for each reel and display the three fruits in a row as emojis It all three fruits match, output "Winner, winner, chicken dinner!" to a <div> element below the fruitsarrow_forwardHTML/CSS JAVASCRIPT please help me answer this question I will give you a good rating Thank you! Take the following static web page application with illustrated output, and modify it so that it produces the second illustrated output. You need to add and position two new red div elements, put the image inside the outer enclosing orange div, and place the same image inside the red divs. You can use any other image you have on file if you can’t locate the godaddy image <! DOCTYPE html> <html> <head> <link rel= "stylesheet" href= "FA19MID4L.css"> </head> <body> <img src= "GoDaddy.png"/> <div class ="enclose"> <p> Welcome to: <strong>webhamster.com</strong> </br> This Web page is parked <strong>Free </strong>courtesy of <a class = "aclass1" href="https://www.godaddy.com">GoDaddy.com</a></p> <h1>Want to buy <span class="span2">webhamster.com ?</span>…arrow_forwardJavascript allowsWrite a page using a balloon emoji (?). When you push the up arrow, it should increase 10%, and when you press the down arrow, it should decrease 10%.Emoji are text, hence adjusting its parent element's font-size CSS property (style.fontSize) controls its size. Remember to provide a unit, such as pixels (10px)."Arrow Up" and "Arrow Down" are the arrow keys. Make sure the keys modify the balloon without scrolling.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education