XHTML Coding -- Tags

22
Beginning Web Site Creation: Dreamweaver CS4 Noreen Brown XHTML CODING -- TAGS

description

XHTML Coding -- Tags. Beginning Web Site Creation: Dreamweaver CS4 Noreen Brown. XHTML = Tags. They come in matching pairs (mostly). Like this. Open Close < br /> . - PowerPoint PPT Presentation

Transcript of XHTML Coding -- Tags

Page 1: XHTML Coding -- Tags

Beginning Web Site Creation: Dreamweaver CS4Noreen Brown

XHTML CODING -- TAGS

Page 2: XHTML Coding -- Tags

They come in matching pairs (mostly) Open Close<html> </html><head> </head><body> </body><title> </title><br /><hr />

<html><head>Put header information

here</head><body>Put the contents of your

web page here</body></html>

XHTML = TagsLike this

Page 3: XHTML Coding -- Tags

A few rules . . . XHTMLAll lowercaseMost of them are “paired”

<p> </p>Empty tags need a space and a /

Good = XHTML <br />Bad = html <br>

Attributes need “ “Good = XHTML <p alignment = “center”>Bad = html <p alignment = center>

Doctype declaration

Page 4: XHTML Coding -- Tags

Behind the scenes

Let’s get startedCenter stage!

Page 5: XHTML Coding -- Tags

Behind the scenes

Add more textIt all squishes together!

Page 6: XHTML Coding -- Tags

Behind the scenes

Divide it upBetter

<p> </p> Paragraph

Page 7: XHTML Coding -- Tags

Behind the scenes

Better stillBetter

<br /> Line break

Page 8: XHTML Coding -- Tags

SPECIAL CHARACTERS

What if you want <body> or <p> to show up on your web page?• &lt;body&gt;• &lt;p&gt;

Page 9: XHTML Coding -- Tags

Behind the scenes

Alignment?Center stage!

<p align=“right”> </p> alignment goes into the first <p> tag.

Page 10: XHTML Coding -- Tags

Behind the scenes

One more thingBetter

<hr /> Horizontal line

Page 11: XHTML Coding -- Tags

Behind the scenes

Fun with Headings!OK, this is annoying . . .

Page 12: XHTML Coding -- Tags

Behind the scenes

Fun with Headings!Much better!

Ooops, no such thing as H7!

Page 13: XHTML Coding -- Tags

Behind the scenes

Ordered listsCenter stage!

Page 14: XHTML Coding -- Tags

Behind the scenes

Unordered listsCenter stage!

Page 15: XHTML Coding -- Tags

Behind the scenes

Definition listsCenter stage!

Page 16: XHTML Coding -- Tags

Behind the scenes

Format Text - LogicalCenter stage!

<strong> </strong><em> </em>

Page 17: XHTML Coding -- Tags

Behind the scenes

Format Text - NestedCenter stage!

Page 18: XHTML Coding -- Tags

Format Text - NestedGood

<strong><em>HELP!</em></strong>

Bad<strong><em>HELP! </strong></em>

Page 19: XHTML Coding -- Tags

Behind the scenes

Links - AbsoluteCenter stage!

Anchor tag <a> </a>

Anchor tag with a web address <a “href=http://www.pcc.edu”> </a>

Page 20: XHTML Coding -- Tags

Behind the scenes

Links - RelativeCenter stage!

Anchor tag <a> </a>

Anchor tag with a file name <a href="http://www.pcc.edu/"> pcc </a>

Page 21: XHTML Coding -- Tags

Behind the scenes

Sort of like a relative link . . . ImagesCenter stage!

Image tag <img />

Image tag with a file name <img src="coffee-art.jpg" />

Page 22: XHTML Coding -- Tags

Behind the scenes

Alt TextCenter stage!

Alt text

<img src="coffee-art.jpg" alt="Lovely coffee!" />