Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

Input Type Datetime-local

The <input type="datetime-local"> designates a field for inputting both date and time, without specifying a time zone.

Depending on the browser’s support, a date picker may appear within the input field.

Example

<form>
  <label for=”birthdaytime”>Birthday (date and time):</label>
  <input type=”datetime-local” id=”birthdaytime” name=”birthdaytime”>
</form>

Input Type Email

The <input type="email"> is utilized for fields intended to capture email addresses.

Depending on browser support, the email address can undergo automatic validation upon submission.

Certain smartphones recognize the email type and append “.com” to the keyboard to facilitate email input.

Example

<form>
  <label for=”email”>Enter your email:</label>
  <input type=”email” id=”email” name=”email”>
</form>

Input Type Image

The <input type="image"> element designates an image to serve as a submit button.

The path to the image is indicated in the src attribute.

Example

<form>
<input type=”image” src=”img_submit.gif” alt=”Submit” width=”48″ height=”48″>
</form>