Question

In: Computer Science

Need to write a program and part 1 of the program is to write an HTML...

Need to write a program and part 1 of the program is to write an HTML code, here are the parameters, but I am new to HTML and I am confused as to how to write this.

1) HTML file shall:

        - have your name(s) somewhere near the top, as a comment.
        - be a complete html document with appropriate html tags.
        - have 1 form with 2 parts, described as follows:

        part 1:
            - present (4) input fields named:
                          myin, myout, inamount, submit1
            - myin and myout are free form text fields.
              inamount is a real number.
              submit1 is of type "submit", with a value of "Make it so".
            - the 4 fields will be in an html table
              that is 1 row by 4 columns
            - you should use a table header for each column.

        part 2:
            - present (3) input fields named:
                          maybein, maybeout, submit2
            - maybein and maybeout are free form text fields.
              submit2 is of type "submit", with a value of "Is path?".
            - the 3 fields will be in an html table
              that is 1 row by 3 columns
            - you should use a table header for each column.

        IMPORTANT: this form will have an "action" value of the CGI
                    file "universal.cgi". It shall use the
                    "method" of "GET".

Solutions

Expert Solution

code for part 1:

<html>
   <head>
       <title>part1</title>
   </head>
   <body>
       <form>
           <table>
               <tr>
                   <th>Field name</th>
                   <th>Input Box</th>
               </tr>
               <tr>
                   <td> myin</td>
                   <td><input type = "text" name = "myin"/></td>
               </tr>
               <tr>
                   <td>myout</td>
                   <td><input type = "text" name = "myout"/></td>
               </tr>
               <tr>
                   <td>inamount</td>
                   <td><input type = "number" name = "inamount"/></td>
               </tr>
               <tr>
                   <td>Submit1</td>
                   <td><input type = "submit" name = "submit" value = "Make it so"/></td>
               </tr>
           </table>
       </form>
   </body>
</html>

code for part 2:

<html>
   <head>
       <title>part2</title>
   </head>
   <body>
       <form action = "universal.cgi" method = "GET">
           <table>
               <tr>
                   <th>Field name</th>
                   <th>Input Box</th>
               </tr>
               <tr>
                   <td> maybein</td>
                   <td><input type = "text" name = "maybein"/></td>
               </tr>
               <tr>
                   <td>maybeout</td>
                   <td><input type = "text" name = "maybeout"/></td>
               </tr>
               <tr>
                   <td>Submit2</td>
                   <td><input type = "submit" name = "submit" value = "Is path?"/></td>
               </tr>
           </table>
       </form>
   </body>
</html>

If you have any doubts please comment and please don't dislike.


Related Solutions

Write an Html Page that uses JavaScript Program to make a Blackjack Game. I need to...
Write an Html Page that uses JavaScript Program to make a Blackjack Game. I need to write an html file (P5.html) that uses JavaScript program to create a Blackjack game. 1. Blackjack Games Rules: a. The object of the game is to "beat the dealer", which can be done in a number of ways: • Get 21 points on your first two cards (called a blackjack), without a dealer blackjack; • Reach a final score higher than the dealer without...
Write the below code to use HTML and JavaScript. 1. a) Write a JavaScript program to...
Write the below code to use HTML and JavaScript. 1. a) Write a JavaScript program to display the current day and time. b) Write a JavaScript program to print the contents of the current window.   c) Write a JavaScript program where the program takes a random integer between 1 to 10 d) Write a JavaScript program to calculate multiplication and division of two numbers (input from the user). e)Write a JavaScript program to create a new string from a given...
use VISUAL STUDIO CODE to write this javascript program Exercise 1 (a) Create a HTML file...
use VISUAL STUDIO CODE to write this javascript program Exercise 1 (a) Create a HTML file that uses createElement and appendChild to dynamically insert three paragraphs when a button is clicked. (b) Create a HTML file that includes JavaScript that is similar to: let recs = [“my item …1”,”my item…2”, …] i.e. an array that contains several CSV item records. When the user clicks a button, each array element will be rendered as a list element. Use a HTML list....
Write a html program that containing at least the following elements: A heading A paragraph An...
Write a html program that containing at least the following elements: A heading A paragraph An ordinary image with link An imagemap with two clickable areas/hotsppots, link one to asignment1 and link the other to any available picture. USE INSTAGRAM WITH THE LINK FOR ONE
Please write "my account" page program by using HTML and CSS
Please write "my account" page program by using HTML and CSS
Write a PHP program using HTML form. It will take Length, Width and Height of a...
Write a PHP program using HTML form. It will take Length, Width and Height of a box as input. When a button is pressed, it will calculate the Volume. If Volume is less than 25 then display the message “Small box”. If Volume is from 25 to 50, it will display the message “Medium box”. When the Volume is greater than 50, then display the message “Large box”.
(HTML) Write a script that plays a “guess the number” game as follows: Your program chooses...
(HTML) Write a script that plays a “guess the number” game as follows: Your program chooses the number to be guessed by selecting a random integer in the range 1 to 1000. The script displays the prompt Guess a number between 1 and 1000 next to a text field. The player types a first guess into the text field and clicks a button to submit the guess to the script. If the player's guess is incorrect, your program should display...
Write an HTML/Javascript canvas program that displays a black dot in the center after the user...
Write an HTML/Javascript canvas program that displays a black dot in the center after the user presses the 's' button on the keyboard. Hint: Canvas size should be 500x500 and the black dot should only appear after pressing 's'.
Assume that there is an image “fewa.jpg” in the root of the HTML folder. Write HTML...
Assume that there is an image “fewa.jpg” in the root of the HTML folder. Write HTML code to insert that image with appropriate alternative text. Also, apply an appropriate title to the image.?
Part 1: Write a program that finds the sum and average of a series of numbers...
Part 1: Write a program that finds the sum and average of a series of numbers entered by the user. The program will first ask the user how many numbers there are. It then prompts the user for each of the numbers in turn and prints out the sum, average, the list of number from the user. Note: the average should always be a float, even if the user inputs are all ints. Part 2: Same as part 1 except...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT