PROVIDE JS SOURCE CODE Design a web page with a text box (username) where the user can enter a name and another text box (ID) where the user enter an only four digit ID.NO and a button "validate". Validate the entered username and ID field for the following using java script. i. Both the fields should not be empty ii. Name field should have only 5 alphabets ii. ID field should be numbers of length 8.
Q: Question 2:. Write a JavaScript program to demonstrate a given number is even or odd with the…
A: I have provided HTML CODE (having internal JS) along with CODE SCREENSHOT and 2 OUTPUT…
Q: (c) Provide a single regular expression that matches all dress style, size and colours in the…
A: [a-z]+\s[XSLM]+\s[0-9]+''\s[A-Z]+
Q: Write a script that calculates the squares and cubes of the numbers from 0 to 5 and outputs HTML5…
A: <script> tag is used to write java script inside the HTML <style> tag is used to style…
Q: write a program for adding content of *. the following picture in HTML page
A: Please see the step 2 :
Q: Modify the following HTML code by adding JavaScript function so that when the user click on delete…
A: function del(){ var num = parseInt(document.getElementById("num").value); var x…
Q: Write a complete HTML code with jQuery to hide the first paragraph when the user clicks on a button.…
A: Please find the answer below :
Q: 7.16 Write a script that uses looping to print the following table of values. Output the results in…
A: Please find the answer below :
Q: Please debug this html, if I run this code the output is attached. Welcome <php echo…
A: code : - <html> <body> Welcome <? php echo $_POST[name]; echo "<br>"; ??>…
Q: a. Write the source code of the html page above. Keep in mind that the information should be…
A: PHP function strpos() is used in the b.php file for checking if the string submitted has all the…
Q: What does c contain after running the following Javascript code? let a = [ 2, 3, 4, 5 ]; let b = […
A: SCREENSHOT OF CODE:-
Q: Write a JavaScript Program to achieve the following requirements from the provided webpage codes. An…
A: The modified code for the JavaScript in the HTML file code is provided in the next step using…
Q: Using event handlers and functions, print the sum, difference, product, quotient, or remainder of…
A: INDEX.HTML <!DOCTYPE html><html><head> <meta charset="utf-8"> <meta…
Q: Try consuming the following weather api, passing lat and lng parameters
A: This is very simple. Simply pass the Weather API Key, we will get a JSON array that consists of the…
Q: List down the four JavaScript operators,
A: Actually, operators are used to perform operations..
Q: Question 2: Consider the following website: https://www.opencart.com/ Using Selenium and python…
A: Python: Python is a computer programming language that is frequently used to create websites and…
Q: Use this exercise to develop the JavaScript code that will accompany the following HTML code so that…
A: ANSWER:-
Q: Question : Explain the following with the help of HTML5 elements in HTML Code with example. •…
A: 1) The <em> tag is used to define emphasized text. The content inside is typically displayed…
Q: You plan to create a GitHub workflow that will use the GitHub Script action to automatically post a…
A: About the first work flowGitHub provides the first workflow for a variety of languages and tools.…
Q: Q4/ For the function below: f(x) = √5 cos(2.5x) e-0.5x - √3 sin(3.5x) In (0.5x) | For 2n ≤ x ≤ 6 1-…
A: 4. 1. Code: Command1 to plot:…
Q: Write HTML code to: a) Generate the following output ORANGE RED GREEN BLUE b) Create an html page…
A: HTML and CSS: HTML (the Hypertext Markup Language) and CSS (Cascading Style Sheets) are two of the…
Q: Provide an external JavaScript code that will validate all the fields of the attached form using…
A: HTML <head> <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700'…
Q: 2. Write the HTML code to output the following using TABLE tag
A: <!DOCTYPE html><html><head><style>table, th, td { border: 1px solid black;…
Q: consider the code below 1. Write a JavaScript function to print "X won Y-Z in W sets" onto the HTML…
A: HTML element :- An HTML element is a type of HTML (Hypertext Markup Language) document component,…
Q: First name: Last name:
A: Step 1: The given code is: <form action="/action_page.php" method="post" target="_blanK">…
Q: Write HTML code to: a) Generate the following output ORANGE RED GREEN BLUE b) Create an html page…
A: HTML and CSS: HTML (the Hypertext Markup Language) and CSS (Cascading Style Sheets) are two of the…
Q: Which of the following is not the rule for writing PHP? A Whitespace sensitive B Case…
A: Which of the following is not the rule for writing PHP? We have four options White space sensitive…
Q: 04/ For the function below: f(x) = √5 cos(2.5x) e-0.5x - √3 sin(3.5x) In (0.5x) | For 2n ≤ x ≤ 6 1-…
A: Given :
Q: . BSNL has designed a grievance registration form in HTML with name of customer, address, telecom…
A: CODE: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"…
Q: Write HTML code to: a) Generate the following output ORANGE BLUE RED GREEN b) Create an html page…
A: a. As per the given question, we need to display the given output which has 3 columns where the 1st…
Q: Write an HTML to generate a green circle on your screen 100px from top and 100px from left. This…
A: <!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport"…
Q: Use Karnaugh map to simplify the following Boolean expression and write down the simplified…
A: Step 1:- Given:- Z=f(A,B,C)=A'+A'BC'+BC =A'(B+B')+A'BC'+BC(A+A') =A'B+A'B'+A'BC'+ABC+A'BC…
Q: Text line breaks and returns are controlled using which tags? .
A: The given list of options is html tags which are used in creating html pages for various purposes.…
Q: How do I execute several lines of code when a countdown timer hits zero? For example, when the page…
A: function getTimeRemaining(endtime){ const total = Date.parse(endtime) - Date.parse(new Date());…
Q: arrange the follo
A: Solution - In the given question, we have to rearrange the given list of javascript operators in…
Q: Suppose the JavaScript code for a web page includes an event handler function for a keydown event…
A: char type values are stored using the quotation. e.key contain the values and it is assigned to the…
Q: Use JavaScript to display the following information: The current date and time in the following…
A: Given: Use JavaScript to display the following information: The current date and time in the…
Q: Demonstrate how IPC works when someone uses the spell-checking function in Microsoft PowerPoint to…
A: The answer is. Given below:-
Q: ] write a javascript code to change fonts dynamically using mouseover and onmouseout event.
A: Step 1 The code is given in the below step
Q: g) Add JavaScript to the HTML code below so that the button acts as an on/off switch, i.e. when the…
A: As per the requirement g program is completed. Note: As per our guidelines we are suppose to answer…
Q: By using NetBeans IDE,write the servlet program with html form to find out the average marks of the…
A: Create a servlet program to display the marks and average of a student.
Q: Write a javascript code to validate all fields of a registration form which has the following…
A: <!DOCTYPE html> <html> <head> <title>Welcome To Registration…
Q: Write a complete code for an HTML page containing a JavaScript program that displays an alert dialog…
A: Java is a general purpose object oriented programming language which is also known as OOPs language.…
Q: Modify the code in a way so that after submitting a form there will appear a table on the screen,…
A: There were a lot of bugs in the HTML code for the table output to be shown by using javascript.…
Q: 4. Create the HTML page below. Write the JAVA SCRIPT code such that a. On clicking INSERT, the text…
A: <!DOCTYPE html> <html> <head> </head> <body> NAME<input…
Q: Banoffee cake We've taken a popular banana cake and given it a banoffee pie make-over. Our cake is…
A: Instructions: Copy paste the below code snippet and save as html file. Then open with any browser…
Q: Suppose you have assigned a reference to a web page element to the variable cupcake. You have also…
A: In this question we have to select a correct option for JavaScript drag and drop question. Let's…
Q: b) The following is the body of a web document titled index.html: Write a city: (i) Create a…
A: Note :- Use name = "cityname" instead of city="cityname" in the index.html i) Drawing or design of…
Q: c) Provide a single regular expression that matches all t-shirt size, styles and colours in the…
A: ^ denotes beginning of the string. + denotes that the particular set of characters can be repeated…
Q: 6.24 Write a script that calculates the squares and cubes of the numbers from 0 to 5 and outputs…
A: Ans: Code: <!DOCTYPE html><html><head><title> Squares and Cubes…
Step by step
Solved in 2 steps with 3 images
- Task:1. Create a personal information form using HTML5 that includes fields for various personal details (e.g., name,address, phone number) similar to the slide’s example (you can use any programming language you want)2. Implement input validation using regular expressions for two specific fields: USM ID and USM email.Validation Requirements:• USM Email: The form must validate and only accept USM email addresses in the format user@usm.edu.• USM ID: The form must validate USM IDs in the format W10123456 or w10123456. The USM ID always startswith 'W' or 'w' (one position), followed by 10 (two positions), and any combination of digits (0-9) for the next 6positions.Testing Patterns (USM ID):• Valid:• W10123456• w10123456• Invalid:• abc1012345• A10123456• 9998501234• w999123456• w121234565• W10w12345• Ww85012345• w100ABCDEF• 123456850wQuestion PROVIDE JS SOURCE CODE Design a web page with a text box (username) where the user can entera name and another text box (ID) where the user enter an only four digit ID.NO and a button "validate". Validate the entered username and ID field for the following using java script. i. Both the fields should not be empty ii. Name field should have only 5 alphabets iii. ID field should be numbers of length 8.As a PHP developer in Software industry, you are given a task to design a user registration page with user picture, write down code to impose restriction on image uploaded by user in signup form.1. Minimum two pictures must be uploaded for an account.2. Only .png or .jpg extensions is allowed.3. Image size should not be more than 5MB4. User Can set default image and that image should be displayed on login.
- The login.html image is shown below. The simple PHP module shows email and password fields for a user to enter. Analyze the code and identify one issue with the code regarding security. Explain the problem by identifying the line no. and provide the corrected line of code. □2345 1 login.html Login Form 6 7 8 9 Login 10 11 12 13 14 15 16 17 Login HTML Email Address: Password:Create a Java Application using NetBeans called EventRegister. The Java application could either have a JavaFX or Java Swing GUI. The application should allow users to register for the independence celebrations by entering a unique number, their name, and their email address then clicking a “Register” button. The unique number must be in the format of three upper case letters followed by three numbers. Ensure that all fields are filled in, and that the unique number and email address are in the correct format. Use this unique number to check if the number already exists in the database. If it does, inform the user of this, otherwise insert the unique number, name, and email address into the database and inform the user that he/she has been registered. The database is called register, and the table called person, with unique_number, name, and email fields.The EventRegister application requires a File menu with an Exit menu item that exits the application. You can make use of any…Create a Simple Contact us form: This contact us form should have thefollowing fields:a. Firstnameb. Lastnamec. Email Addressd. Telephone Number.e. A submit ButtonThe contact us form should have the following Javascript validation:a. Ability to check that the email entered is a valid email addressb. Ability to restrict the telephone number field from receiving a text in place ofa phone number.c. Ability to display the user details using an alert.
- Create an html form by using inputs fields given below. Write also the code for the buttons in JavaScript to show the result according to the input number entered by user. To do this, meet the following requirements: Use "Math" object of javascript to use built-in functions Create your own functions if there is no built-in function Reset button should reset the input text fields Simple Calculator Enter Number 90 Result 1 sin cos tan squre root square double resetOne of JavaScript’s most useful purposes is validating online forms. This means that, the data entered in the fields must be valid. For example, that no fields are blank and that the data is in the right format. As a web programmer, design a simple HTML form with three (3) fields; Name, Phone, and Email, create a database using a . Write a JavaScript code to validate the form before submission to the database.(share Code and screen shots)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.
- 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…Assignment 1: Design the below form using the Java Swing controls and JOptionPane Student Information First Name: Last Name: Title: Nickname: Display Format: [Item 1 Mail Format: Programming Language Skills : C HTML C Plan Text C ustom I Oracle Java ASP.NET E-mail E-mail Address: Print in TextArea Clear Exit Dispaly Welcome Note: Print in TextArea Button: must get all data from the controls in the design and display all in textArea each one in a new Line. Clear Button: clear all data in the form. Exit Button: Exit the Form with confirm dialog. Display Welcome Button: use Dialog box to display Welcome Dialog.Create a simple Login page with User ID and Password fields () and a login button. Create a JavaScript function that will check if user id and password are empty. The function will not allow the form to be submitted to the server if any field is empty. Also, save the user ID and Password to local storage using JSON if they are not empty so that the next time the data can be retrieved from the local storage if the user needs to login again