HTML Part 2
HTML Part 2
• are typically used to specify character set, page description, keywords, author of the document,
and viewport settings.
• Metadata will not be displayed on the page, but is machine parsable.
• Metadata is used by browsers (how to display content or reload page), search engines (keywords),
and other web services.
<meta charset=……>
• The charset is an HTML attribute that defines the character encoding for your browser to
use when displaying the website content.
• UTF Unicode Transformation Format
• The HTML5 specification encourages web developers to use the UTF-8 character set,
which covers almost all of the characters and symbols in the world!
• If the name attribute is omitted, the value of the input field will not be sent at all.
<input type=“text”>
• Will create a single line text field
<input type=“password”>
Creates a text input field but the input entered will be hidden
<input type=“email”>
• is used for input fields that should contain an e-mail address.
• the e-mail address can be automatically validated when submitted .
<input type=“submit”>
• Creates a button for submitting form data to a form-handler.
• The form-handler is typically a server page with a script for processing input data.
• The form-handler is specified in the form's action attribute:
<input type=“date”>
• Used to create an input field to select date
• Depending on the browser a date picker will appear