PRACTICAL NO. 21:-CREATE DIFFRENET ELEMENTS IN WEB PAG
✯ ( VIII ) EXERCISE
✧ Write HTML code to create web page as show below .
✯ ( IX ) 'HTML CODE'
✯ ( XXXI ) Output ( Take screen shot of the webpage created as output and attach in here)
✯ ( XV ) Pracrical Related Questions
✧ (1) Explian action and method attributes of form tag
✯ ANSWER
1.action attribute: This attribute specifies the URL where the form data should be submitted when the form is submitted. It can be a relative or absolute URL. If the action attribute is not specified, the form data is submitted to the same page or URL where the form is located.
2.method attribute: This attribute specifies the HTTP method to be used when submitting the form data. The two most commonly used methods are GET and POST.
2.1GET: This method appends the form data to the URL as query parameters. It is suitable for submitting small amounts of data and is visible in the browser's address bar. It has limitations on the amount of data that can be sent.
2.2POST: This method sends the form data in the body of the HTTP request. It is more secure than GET, as the data is not visible in the URL. It is suitable for submitting large amounts of data and is commonly used for sensitive information like passwords.
✧ (2) Write HTML code to create "SELECT" component as shown in the image below
✯ ANSWER
✧ (3) Explian difference between following two tags are used to create buttons.
1.button../button
2.input type="button"
✯ ANSWER
✧ (4) How to reset all form values to their initial value?
✯ ANSWER
END