Header Ads

Data Types




A data type specifies the type of value assigned to the attributes and the type of content that is to be displayed on the Web page. The different types of content include text, images, hyperlinks, video, and audio. Data types help in identifying the type of formatting such as color and length of data.

The important basic HTML data types are as follows:

  • Text Strings
Specifies textual content, which is readable by the user.
  • Uniform Resource Identifiers (URIs)
Specifies the location of Web pages or network files.
  • Colors
Specifies the color to be applied to the content on the Web page.

  • Lengths
Specifies the spacing among HTML elements. Length values can be in PixelsLength, or Multiple Length. Pixels refer to the smallest dot on the screen. Length is specified as a percentage value of Pixels or available space on the screen. Multiple Length can be specified as Pixels or percentage.

  • Content Types

Specifies the type of content to be displayed on a Web page. Examples of content
types include "
text/html" for displaying text using HTML format, "image/gift"
for displaying image of a .gift format, and "video/mpg" for displaying a video fie of mpg format. Following Figure shows the different data type.












No comments:

Powered by Blogger.