Presentation is loading. Please wait.

Presentation is loading. Please wait.

COS 125 Internet Fundamentals and Web Page Design Day 12.

Similar presentations


Presentation on theme: "COS 125 Internet Fundamentals and Web Page Design Day 12."— Presentation transcript:

1 COS 125 Internet Fundamentals and Web Page Design Day 12

2 Agenda Capstone Projects 1 st progress report due March 7 Assignment 3 posted Due March 7 @ 2:05 Pm Assignment 4 will posted by next class Due March 21 Next Quiz will March 28 Through chapter 6 (I hope) Source Code for text book examples http://perleybrook.umfk.maine.edu/classes/cos125/HT ML6ed_examples/localindex.html http://perleybrook.umfk.maine.edu/classes/cos125/HT ML6ed_examples/localindex.html Today discuss Basic XHTML Structure & Formatting Chaps 3 & 4

3 Basic XHTML Declare the page as XML Set the DTD Tells browser what “rules” you are using Set the namespace Instructions for tags Create the page Head & title Body

4 Template for Transitional XHTML Dreamweaver does this for you automatically

5 USING xHTML in Dreamweaver File>>NEW

6 Adding a title Type The Title Between In Dreamweaver Untitled Document Just change text

7 Creating Headers Used as Dividers and Title for sections of your page Always displayed with a line return at end Six levels h1, h2, h3, h4, h5, h6 h1 is largest font Can be formatted with styles Can be aligned (left, right, center) Can be “named” (id=“aName”)

8 Examples of Headers Header 1 header 2 header 3</h3 header 6

9 Starting a Paragraph Type Type your paragraph Type Can be aligned (deprecated) Left, right, center, justified Can be named (ID’d) Can formatted with style Add a space &nbsp Add a blank line

10 Naming and Classifying Elements All HTML element can be named and/or made a member of class group Why For Style Sheet Formatting For page navigation Naming is creating a unique name for a specific element id=“daName” Classifying is for grouping elements in a group with similar characteristics class=“daGroup”

11 Breaking a page into parts Two ways Division Block level Spans Inline Useful for formatting with style sheets Can (and should) be named (ID’d)

12 Adding comments Comments are for the maintainers of the XHTML code Comments are viewable in the code but NOT in the web page What should you put in comments Your name (prove ownership) Notes to yourself so that you can edit your code Identify places in the code that need work or updates

13 Gee Whiz Tip of the Day Adding Titles to your elements Title=“daTitle” When the user puts his mouse cursor over the element in the web page a little box with the “daTitle” will appear http://perleybrook.umfk.maine.edu/samples/basicXHTML.htm

14 Basic XHTML Formatting Making text Bold Making text italic Making Text Bigger Making Text Smaller Can be “nested” ??????

15 Basic XHTML Formatting Using a Monospaced Font Using Preformatted text Used when you want the browser to display text as it is written in the code

16 Quoting text Either Block or in-line Block http://someserver.com Inline quote (doesn’t work with IE)

17 Other stuff Superscript Subscript Revised Text (underlined) Deleted text (strike through) Abbreviations (doesn’t work with IE) Examples http://perleybrook.umfk.maine.edu/samples/xhtmlformat.htm

18 Inserting a Image Determine after what element in your WebPage you want the Image to appear Place cursor in your code after the element Type “image.url” is location of the file http://www.server.com/images/image.gif../images/image.gif images/image.gif image.gif For this class It is easier just to copy the image into the same directory and the xHTML page

19 Offering Alternative Text If the image won’t appear, the “alternative text” will alt is REQUIRED for XHTML Can also use title attribute On some browsers “Alt” text will be a mouse over pop-up Examples http://perleybrook.umfk.maine.edu/samples/UsingImages.ht m http://perleybrook.umfk.maine.edu/samples/UsingImages.ht m

20 In class excerise Create an XHTML page using Dreamweaver Code Mode Do an example of each of the elements shown today Headers Paragraph Division and spans Line breaks and Spaces Names, classes and titles Text formatting Bold, Italics Big, small, Superscript, subscript Insert, delete, quotes, abbreviations Preformatted text


Download ppt "COS 125 Internet Fundamentals and Web Page Design Day 12."

Similar presentations


Ads by Google