Wednesday 9 August 2023

Web Development 13

 

LECTURE # 12

8/8/2023
Question #1: What are the attributes of form tag?

Answer: The action attribute defines the action to be performed when the form is submitted. Usually, the form data is sent to a file on the server when the user clicks on the submit button. For example _blank The response is displayed in a new window or tab.
  • The target attribute specifies where to display the response that is received after submitting the form.
Question #2: What are the attributes of input describe some further?

Answer: The input value attribute specifies an initial value for an input field.
  • The input readonly attribute specifies that an input field is read-only.
  • The input disabled attribute specifies that an input field should be disabled.
  • The input size attribute specifies the visible width, in characters, of an input field.
  • The input maxlength attribute specifies the maximum number of characters allowed in an input field.
  • The input min and max attributes specify the minimum and maximum values for an input field.
  • The min and max attributes work with the following input types: number, range, date, datetime-local, month, time and week.
  • The input placeholder attribute specifies a short hint that describes the expected value of an input field.
  • The placeholder attribute works with the following input types: text, search, url, tel, email, and password.
  • The input required attribute specifies that an input field must be filled out before submitting the form.
  • The required attribute works with the following input types: text, search, url, tel, email, password, date pickers, number, checkbox, radio, and file.
  • The input autofocus attribute specifies that an input field should automatically get focus when the page loads.