web pages: creating & maintaining body tags. there have been several versions of html since its...

Post on 12-Jan-2016

216 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Web Pages:Creating & Maintaining

Body Tags

There have been several versions of HTML since its inception.

Version YearHTML 1991HTML 2.0 1995HTML 3.2 1997HTML 4.01 1999XHTML 2000HTML 5 2012

•A <!DOCTYPE> declaration helps the browser to display the web page correctly. •<!DOCTYPE> statement is not case sensitive.•The first line of every HTML document should be a <!DOCTYPE> statement.

HTML Versions

For HTML 4.01<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<HTML>

<HEAD>

<TITLE>My Web Page</TITLE>

</HEAD>

<BODY>

This is my webpage

</BODY>

</HTML>

Doc Type Declaration

“p” = Distance in Pixels…..

Bgcolor is the color of the Background

<BODY> </BODY>

<BODY bgcolor=“#RRGGBB”>

<BODY leftmargin=“p”>

<BODY text=“#RRGGBB”>

<BODY bgcolor=“#FF0000”>

<BODY topmargin=“p”>

<BODY text=“#0000FF”>

3

Default

FFFFFF

3

000000

<BODY bgcolor=“#00AC25” topmargin=“25” leftmargin=“50” text=“#34A3DD”>

<BODY rightmargin=“p”> 3

HTML

Open Notepad

Hello there !

All text is the Largest Heading

Aligned to the left

Text color is Blue

Top Margin is “100”

Left Margin is “150”

Background color is Green

Title = “Body Options”…. File Name = “bodyoptions.html”

top related