Web Technologies Design - Lecture 2
Web Technologies Design - Lecture 2
Applications
Chapter 2
Introduction to HTML
Internet & World Wide Web How to Program, 5/e
Faculty of Computers and Information Technology
© 2008
Pearson
Education,
2.5 Headings
⦁ HTML5 provides six heading elements (h1 through h6) for
specifying the relative importance of information
▪ Heading element h1 is considered the most significant heading
and is rendered in the largest font.
▪ Each successive heading element (i.e., h2, h3, etc.) is rendered in
a progressively smaller font.
⦁ Web browsers typically underline text hyperlinks and color them blue by default.
⦁ Links are created using the a (anchor) element.
⦁ When a URL does not indicate a specific document on the website, the web server returns
a default web page. This page is often called index.html, but most web servers can be
configured to use any file as the default web page for the site.
⦁ If the web server cannot locate a requested document, it returns an error indication to the
web browser (known as a 404 error), and the browser displays a web page containing an
error message. © 2008 Pearson Education, Inc. All rights reserv2e4d.
2.6 Linking
⦁ The strong element indicates that the content has high importance. Browsers typically
render such text in a bold font.
⦁ Images may also be acquired from various websites, many of which offer royalty-free images.
Hidden Inputs
⦁ Forms can contain visual and nonvisual components.
⦁ Visual components include clickable buttons and other graphical user interface
components with which users interact.
⦁ Nonvisual components, called hidden inputs, store any data that you specify,
such as e-mail addresses and HTML5 document file names that act as links.
© 2008 Pearson Education, Inc. All rights reserved.
2.11 Forms
text input Element
The text input inserts a text field into the form, which allows the user to input data.
Password input Element
⦁ The password input inserts a password box into a form.
▪ Allows users to enter sensitive information, such as credit card numbers and
passwords, by “masking” the information input with another character, usually
asterisks.
▪ The actual value input is sent to the web server, not the asterisks that mask the input.
Label Element
The label element provides users with information about the input element’s purpose
⦁ The size attribute specifies the number of characters visible in the text field.
⦁ Optional attribute maxlength limits the number of characters input into a text field.
© 2008 Pearson Education, Inc. All rights reserved.
2.11 Forms
submit and reset input Elements
⦁ The submit input element is a button. When the submit button is pressed, the form’s
data is sent to the location specified in the form’s action attribute.
⦁ The value attribute sets the text displayed on the button.
⦁ The reset input element allows a user to reset all form elements to their default values.