Computer Science
Q: Add the necessary code (JavaScript, HTML, and/or CSS) to generate a set of lotto numbers. Your page…
A: I have provided HTML CODE ( having internal CSS and internal JS also ) along with CODE…
Q: Q. In Visual basics the background color of a Web page is determined by the ______ property
A: We can set the background color, text color, and many more of a web page in visual basics using many…
Q: In HTML, onblur and onfocus are: Style attributes Event attributes O HTML elements
A: The style attribute determines an inline style for a component. The style attribute will supersede…
Q: Create a webpage (as shown below) that has two buttons Start' and 'Stop'. When the "Start' button is…
A:
Q: Show me how to use h1 heading tag in HTML. Use the heading as: "HTML Headings" Write HTML code and…
A: Show how to print h1 size heading in a webpage using HTML. Solution: In HTML h1 heading tag is there…
Q: True or false: the "id" property should be used to style multiple HTML elements simultaneously. a.…
A: GIVEN: True or false: the "id" property should be used to style multiple HTML elements…
Q: HTML True or False One can use padding inside a paragraph but not a div to enlarge the total size…
A: Given: HTML True or False One can use padding inside a paragraph but not a div to enlarge the total…
Q: Create an HTML form that has a number of textboxes write a javascript code that verifies all…
A: Step 1 The code is given in the below step
Q: a programmer wants to have a video file on his website the video should start playing as soon as…
A: <!--Basic syntax--> <video src = "ooo.mp4" width = " " height = " " controls> Your…
Q: Write a JavaScript code that manipulates the HTML Grouping selector
A: JavaScript:- Java Script can be both server-side and client-side. Client-side javascript is the…
Q: Part la- Floats (float-content.html) Implement a drop cap letter in float-content.html. Using…
A: Answer: float-content.html: <!DOCTYPE html> <html lang="en"> <head> <meta…
Q: Use JavaScript to validate user inputs for this HTML form. Create a new HTML page, LabTest.html,…
A: Here we write javascript code for validation:…
Q: Strings can be processed and parsed one character at a time in javascript statements either by…
A: Java is a programming language. It contains extensive libraries (package). It can be used to create…
Q: Make the html/css/javascript code like this please. category1 = Korean traditional category2 =…
A: We have selection boxes to select categories Once the categories are selected, The sub category list…
Q: The following HTML page (Figure 1), when runs, will show a form (Figure 2) for the entry of a…
A: Task : In the given question , we have given the HTML code. We need to modify the given code in…
Q: Tables can be aligned left or right in a web page using the CSS property: O a. a. text-align b.…
A: 1) The text-align CSS property sets the horizontal alignment (like left, right, or center) of the…
Q: Using HTML , print a paragraph that is a description of a book; include the title of the book as…
A: This question is based on HTML and it's formatting tags.
Q: is a box model property used to control the distance between the HTML element content and the border…
A: Answer to the above question related to setting the space between content and border element is…
Q: Different method for finding HTML element O All of these O Both A and C…
A: Method for finding HTML element: getElementsById() : To find any element in HTML with id.…
Q: In html and CSS Create a regular expression that will check whether either 4 words are contained…
A: The following snippet is helpful. It checks for 4 or more words.
Q: Cascading Style Sheets are used to Select one: O a. specify the presentation of elements separately…
A: Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a…
Q: Create a web page with a form that has three text boxes with the ids of tb1, tb2, tb3 and a…
A: HTML and JavaScript code of above problem statement are below:
Q: Q2: Write a JavaScript code to change the background color of a Webpage on the click of a button…
A: Answer is given below
Q: Show me how to use h1 heading tag in HTML.Use the heading as: "HTML Headings" Write HTML code and…
A: Introduction : We have asked how to use h1 heading tag in HTML. Use the heading as: "HTML Headings
Q: Q2 Design a web page (name it q2.html), which uses Bootstrap framework, to display the following…
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: The HTML code below has 4 unique issues that do not conform to the XHTML syntax rules. Identify…
A: To identify the errors in the given code.
Q: Write an HTML and JavaScript code that do the followings: 1- The HTML part contains an image on a…
A: Answer is given below .
Q: Based on the following specification, code one webpage using HTML5, CSS and JavaScript. HTML5:…
A: Code <!DOCTYPE html><html><head>…
Q: Create JavaScript code to display the nodeName and nodeType for all nodes in the current HTML…
A: In this JavaScript program we have to perform two of the projects in which 1) JavaScript code to…
Q: Write a html code Registration form Name sex ( radio button) date of birth phone number
A: Given ;- Write a html code Registration form Namesex ( radio button)date of birthphone number
Q: Design same structure using HTML
A: HTML code for given structure or page. <!DOCTYPE…
Q: Write HTML code to print the following. hl and h6 headings. Hello Coder! Hello Coder!
A: Write HTML code to print the following headings. Solution- Enclose the given text "Hello Coder" in…
Q: Question : Explain the following with the help of HTML5 elements in HTML Code with example. •…
A: The explanations of the following HTML5 elements with the help of HTML code is given by: Special…
Q: Create below layout using HTML and CSS grids Holy Grail Layout Nav Main Content Sidebar Footer
A:
Q: Create an HTML form to allow the user to enter student names, one at a time, and displays all the…
A: Given: Create an HTML form to allow the user to enter student names, one at a time, and displays all…
Q: A submit button is not an input element? Embedded php can send its variables to several different…
A: Object-oriented programming languages like Java make it easy for programmers to use ADTs each ADT…
Q: Create a web form (action=”lab.php” and target must be a blank page) Fields (make sure all fields…
A: <!DOCTYPE html> <html><!-- Here Html starts --> <head><!-- Here head…
Q: Part la- Floats (float-contenthtml) Implement a drop cap letter in float-content.html. Using…
A: Lorem ipsum is an placeholder text which basically works like an dummy text for testing the visual…
Q: I need this in html Code should be write else unlike
A: Please find the HTML Code below:
Q: Different method for finding HTML element Both A and C O All of these document.getElementByld(id)…
A: There are various methods for finding HTML element: Finding HTML elements by id that is…
Q: Different method for finding HTML element O document.getElementsByClassName(name)…
A: Different methods for finding HTML elements include: Finding HTML elements by id Finding HTML…
Q: The HTML must contain JavaScript that displays the following: An interaction that prompts for the…
A: Please find the answer below
Q: Develop a web page "pl.html" that contains a form with text boxes vl and v2 and result box and a…
A: Begin Enter two numbers in the input text boxes Upon clicking submit multiply Echo the result End
Q: Design a web page with a text box (username) where the user can enter a name and another text box…
A: In the given question, the conditions related to ID are not clear. In the start, it is mentioned…
Q: Part 4: Build a html form with the following elements. The form must be within a table structure. •…
A: // Html form in table structure <form method="POST" action="example.cgi"><table>…
Q: Write a JavaScript code that manipulates the HTML ID selector
A: Your JavaScript code that manipulate HTML code is given below. Algorithm :- The HTML document…
Computer Science
Write a webpage that creates a game of dice using only HTML and JavaScript.
The code should make use of the HTML <canvas> element.
The webpage should inform the user of the rules of the game.
Step by step
Solved in 4 steps
- Q2 Design a web page (name it q2.html), which uses Bootstrap framework, to display the following sentence: Web Development for Mobile Devices. The sentence should appear as heading1 (i.e., hl) with font size 60 points and red border of 8px thickness if the page to be displayed on PC screen. If the page is displayed on a tablet screen, the sentence should appear as heading 3 with font size 30 points and blue border of 5px thickness. Finally, if the page displayed on mobile screens, then the sentence must not be displayed, and replaced with the sentence (Too small screen!) in "red" text color: Q3 Analysis, and Comments. The tab-page of Result tab must include three cards of three different must appear horizontally in one line for small and larger screens, and vertically for mobile screens. items (of your own selection). The card includes Title, Picture, and Price (in JD) of that item. The cards The tab-page of Analysis tab includes a table of three columns (with titles of your own…Dream Car Web Page Form: You need to create a web site in HTML format. You will create a webpage containing a form that provides users the ability to enter information. Your webpage should contain the following:INPUT tag: type, name, id, placeholder, and value. The web page will have input fields for the following information: First Name Last Name Date Address Favorite Car (text area) Your webpage should be designed in a logical manner and be well organized. Please be sure to submit your .html file as a text document for grading. Also, submit a Word document containing a screenshot that shows the set-up of your webpage.Hands-On Project 1-5Learning to locate and fix errors is an important skill for anyone programming in JavaScript. You have been given a web page containing several errors that need to be fixed. When fixed, the page will display the content shown in Figure 1-27. Do the following:1. Use your code editor to open project01-05_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-05.html.2. In the head section of the document there is a script that declares and initializes the reopenDate variable. There are two errors in this code. Fix both errors.3. Scroll down to the script embedded within the article element. The code contains a total of four errors. Locate and fix the errors.4. Save your changes to the file and then open the file in your web browser. Verify that the page resembles that shown in Figure 1-27. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta…
- JavaScript function that serves as a constructor for the Car class. The Car class is to contain the following: Properties: Brand, Model, Year, OdometerMethods: Drive Create a web page with three textboxes and two buttons. The textboxes are for entering a car's brand name, model and year. Of the two buttons one is to show "Enter" and the other "Drive". When clicking the "Enter" button, a new Car object is to be instantiated. Its properties are to be set by the values entered. When clicking the "Drive" button, the Odometer property is to be incremented by 1. Whenever the value in the odometer is divisible by ten, an alert box is to be displayed.In javascript I need help creating a web page that has the following elements: You must use the following methods to select elements on your webpage and dynamically change one of their style settings: getElementsByTagName() getElementsByClassName() querySelector() querySelectorAll() You must use the following functions to demonstrate creating elements dynamically. These elements must be visible in the web browser. createElement() appendChild() cloneNode() with no children cloned cloneNode() with children cloned insertBefore() You must dynamically remove a node that you added to the original html file. You must dynamically set at least three windows object properties: You must add a button that when clicked calls the window object open function and opens a link to another page such as Amazon or CNN. You must add another button that when clicked calls the window object open function using at least 5 of the options for the open function and opens a link to another page such as…Time selected to Military time The difference between time and military time is the lack of columns in military time. Create a form via using input type=time to accept a time from the user. Submit the input via get method to a php page where the time will be displayed in military time.
- HTML and CSS! Exercise: Create a web page that displays a hyperlink for each subject in your current semester. When the user clicks on a link, he should open the respective topic page.Note: Subject pages can be empty. Use CSS pseudo-classes on hyperlinks.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"When a CSS stylesheet is used and class="btn-group" is found in HTML, what CSS selector would style that HTML? A) btn-group B) #btn-group C) .btn-group D) :btn-group
- 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…A name is entered into a text box on a simple HTML form. When “submit” is clicked, the URL looks like this: http://www.somewebsite.com/form.php?name=John What type of submission method did the form use? Would it be GET Method or POST Method?Design HTML Form.javascraptApply the data validation as follows:1. Mobile number field data must be a numeric data and not less than 8 digits,2. The email field must accept the data which must contain the character '@' and dot (.). Andthe character @ must not be the first character and the last dot must at least be onecharacter after the @.On submitting the form, If all these validations are followed, another HTML page (value of theaction attribute of the above HTML page) must be displayed your data is submitted successfully.