120 likes | 231 Vues
This document provides a foundational guide for creating and maintaining a web page using HTML. It demonstrates the use of the `<!DOCTYPE HTML PUBLIC>` declaration and the basic structure of an HTML document, including the `<HTML>`, `<HEAD>`, and `<BODY>` sections. The tutorial covers setting background colors, text colors, and margin settings to style the web page effectively. Practical examples like setting specific colors and margins are included to enhance understanding. Perfect for beginners looking to grasp the essentials of web development.
E N D
Internet Explorer Mozilla FireFox
Doc Type Declaration <!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> <BODY> This is my webpage </BODY> </HTML>
<BODY bgcolor=“#00AC25” topmargin=“25” leftmargin=“50” text=“#34A3DD”> <BODY> </BODY> Default FFFFFF <BODY bgcolor=“#RRGGBB”> <BODY bgcolor=“#FF0000”> 3 <BODY leftmargin=“p”> Bgcolor is the color of the Background 3 <BODY topmargin=“p”> “p” = Distance in Pixels….. 3 <BODY rightmargin=“p”> <BODY text=“#0000FF”> 000000 <BODY text=“#RRGGBB”>
HTML Your turn!
Title = “Body Options”…. File Name = “bodyoptions.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