Web Pages Creating Maintaining Body Tags HTML Versions
Web Pages: Creating & Maintaining Body Tags
HTML Versions There have been several versions of HTML since its inception. Version HTML 2. 0 HTML 3. 2 HTML 4. 01 XHTML 5 Year 1991 1995 1997 1999 2000 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.
Doc Type Declaration For HTML 4. 01 <!DOCTYPE HTML PUBLIC "-//W 3 C//DTD HTML 4. 01 Transitional//EN" "http: //www. w 3. org/TR/html 4/loose. dtd"> <HTML> <HEAD> <TITLE>My Web Page</TITLE> </HEAD> <BODY> This is my webpage </BODY> </HTML>
<BODY> </BODY> <BODY bgcolor=“#00 AC 25” topmargin=“ 25” leftmargin=“ 50” text=“#34 A 3 DD”> Default <BODYbgcolor=“#RRGGBB”> bgcolor=“#FF 0000”> Bgcolor is the color of the Background <BODY leftmargin=“p”> <BODY topmargin=“p”> “p” = Distance in Pixels…. . <BODY rightmargin=“p”> <BODYtext=“#RRGGBB”> text=“#0000 FF”> <BODY FFFFFF 3 3 3 000000
L M HT
Title = “Body Options”…. File Name = “bodyoptions. html” Hello there ! All text is the Largest Heading Aligned. Open to the left Notepad Text color is Blue Top Margin is “ 100” Left Margin is “ 150” Background color is Green
- Slides: 6