Basics of Web Design: Html5 & Css3
4th Edition
ISBN: 9780134444338
Author: Terry Felke-Morris
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 4, Problem 2RQ
Program Description Answer
A Cascading Style Sheet (CSS) selector can be a HTML element name, a class name and an id name.
Hence, the correct answer is option “D”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
I have the HTML part down - I'm just needing help with the javascirpt function.
You must create a website page that asks the user to input information about themselves to see if they might be a good study buddy for you.
Your webpage must have a form that posts information to StudyBuddy.js.
You form must have a submit button labeled submit.
You must have at least 3 of the following elements:
text input element
set of radio buttons
checkbox
drop down list box
list box
textarea
All elements on your html page must be a different type. (i.e., You may not use 3 text input elements.)
Each input must have a label that describes the value being input.
Each input must have a label to signify if there is an error in the value entered for that field.
You must use the following HTML 5 attributes at least once:
autocomplete
required
novalidate
pattern
title
You must add a function to StudyBuddy.js that will be called when the submit button is pressed.
For each of the three elements you add…
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"
What is the difference between the following two CSS selectors?
article particle>p
Chapter 4 Solutions
Basics of Web Design: Html5 & Css3
Knowledge Booster
Similar questions
- Create a web page with three paragraphs and three buttons. Write code for these buttons by following the instructions given below: • When buttonl will be clicked, color of first paragraphs should be blue. • When button2 will be clicked, color of first two paragraphs should be red. • When button3 will be clicked, color of all paragraphs should be green. This is first paragraph. This is first paragraph. This is second paragraph. This is second paragraph. This is third paragraph. This is third paragraph. Button1 Button2 Button3 Button1 Button2 Button3arrow_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_forwardWhat is displayed when the following style is applied to the HTML below? A) Choice A B) Choice B C) Choice C D) Choice Darrow_forward
- Hands-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_forwardWrite a JavaScript code with the following three different conditions: • Create the HTML document containing an element with id="myImage" for any images you want. • Use the HTML DOM to get the element with id="myImage". • Write a JavaScript function to change the JavaScript src attribute of element from " pet.gif" to " cat.jpg" when clicking on a button. Note: Students can use any gif and jpg files according to their choice. Important notes: 1. You should have to copy and paste the script as your answer to this question. DON’T take a screenshot for your script. It must be an editable script. 2. Take a screenshot of your output web page and paste it as a part of your answer.arrow_forwardYou 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_forward
- Execute 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_forwardBy using the program below: Kindly Change the color of all elements with the class "colortext", to "red". <!DOCTYPE html> <html> <head> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p class="colortext">This is another paragraph.</p> <p class="colortext">This is also a paragraph.</p> </body> </html>arrow_forward10. Create an application which will allow the user to type some text into a text box, and constantly display the number of words and the number of alphabetic letters that has been typed so far. By using HTML (the source code and the result of the program are recommended)arrow_forward
- HereWrite the code necesary in javascript to create a webpage that contains a contact form like the one in the attatched picture. To create and style this form, copy the following HTML and CSS code exactly as follows: HTML: <form><label for="myName">Name:</label><input type="text" name="myName" id="myName"><label for="myEmail">E-mail:</label><input type="text" name="myEmail" id="myEmail"›<label for="myComments">Comments:</label><textarea name="myComments" id="myComments" rows="2" cols="20"></textarea><input id="mySubmit" type="submit" value="Submit"›</form> CSS: form { background-color:#eaeaea;font-family: Arial, sans-serif;padding: lOpx; }label { float: left;width: 100px;clear: left;text-align: right;padding-right: lOpx;margin-top: lOpx; }input, textarea { margin-top: lOpx;display: block; }#mySubmit { margin-left: 110px; }.arrow_forwardWrite an HTML code to display the following form. Then write a JavaScript function to validate the form to check the name, email and comments fields are not empty. O ITDR1105 Final Exam + -> G Search Google or ty... : Apps O Mobile Application.. 5 Blackboard Lear Name : Email : Comments: Submitarrow_forwardIn JavaScript create a program with the following parameters: Create an HTML page leaving the space between the <body> and </body> tags open. In the Title type a descriptive name Between the <body> and </body> tags add the <script> and </script> tags. Create a variable named myheading and give it this value: This is My Web Page! Create a variable named linktag and give it this value: SMC website and with a link to this text. Create a variable named Introtext and give it this value: See below for odd numbers stars. Create a variable named begineffect and give it the value: <strong>. Create a variable named endeffect and give it the value </strong>. Create a variable named beginpara and give it the value <p>. Create a variable named endpara and give it the value </p>. Place all of the variable definitions into a single var statement so that you do not need to keep repeating the var keyword remember to end the last line…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