1 / 12

Creating and Maintaining a Basic Web Page with HTML and Body Options

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.

camila
Télécharger la présentation

Creating and Maintaining a Basic Web Page with HTML and Body Options

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Pages:Creating & Maintaining Week 5

  2. Internet Explorer Mozilla FireFox

  3. 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>

  4. <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”>

  5. HTML Your turn!

  6. 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

More Related