1.

List out newly introduced input types, APIs, form elements, and elements that support media content in HTML5.

Answer»

List out newly introduced input types, APIs, form elements, and elements that support media content in HTML5. 

HTML5 has been updated repeatedly in the last few years, and the addition of input types has greatly simplified its use. AMONG some of these input types are

  • Colour: Enable users to select or choose a colour using the colour picker.
  • Date: Enable users to select or choose a date from a drop-down calendar.
  • Datetime-local: Enable users to select or choose both local date and time.
  • Email: Enable users to enter an email address.
  • Month: Enable users to select or choose a month and year from a drop-down calendar.
  • Week: Enable users to select or choose week and year from a drop-down calendar.

HTML5 introduces the following new form elements:

  • <datalist>: Specifies a list of options for input controls.
  • <keygen>: Creates an encryption key.
  • <output>: Defines the result or output of an expression.
  • <progress>: Heads in the direction of 100% of the maximum value.
  • <meter>: Provides a gauge that shows a general value within a range.

The following are some of the new APIs introduced in HTML5:

  • History API: Provides programs with access to the browser's history.
  • Page visibility API: Enables us to determine the current visibility state of a page.
  • BATTERY Status API: Displays the current battery status of the DEVICE.
  • User Timing API: Provides programmers with high-precision timestamps for measuring application performance.
  • Vibration API: Provides access to the device's vibration functionality.

HTML5 includes five elements that support media as follows:

  • <audio>: Used to embed audio files in a web page
  • <video>: Used to embed video files in a web page.
  • <SOURCE>: Used for attaching multimedia files, including audio, video, and photos.
  • <embed>: Used to embed external applications, usually multimedia content such as audio or video into an HTML document.
  • <track>: Specifies text tracks for audio and video components.


Discussion

No Comment Found