Webpage Coding Using "The Yahoo! Style Guide"

Cheryl McCann
"The Yahoo! Style Guide" is for anyone writing for
the Web needing a good tool for making text easy to scan, compelling copy,styling with consistent punctuation and numbering, and avoiding commonpitfalls. A little technical know-how is handy in writing for the Web which Ihave found to be the case quite often. Next is webpage coding, using "TheYahoo! Style Guide."


Basic
Webpage coding


In becoming familiar with basic Webpage coding, a
little HTML and XHTML is recommended. Most contributors for Associated Contentuse the built-in text editor and the HTML and XHTML is taken care of behind thescenes. If you need to know basic HTML and XHTML, Webpage coding is covered inthe "Resources" section of "The Yahoo! Style Guide" quick-reference guide.


http://styleguide.yahoo.com/resources/basic-webpage-coding/html-and-xhtml-quick-reference-guide


HTML
and XHTML Webpage coding


HTML, HyperText Language, has element tags with angle brackets around them. An
example is a paragraph element:

XHTML
is Extensible Hypertext Markup Language, a XML markup language that extendsHTML. The latest version of HTML is HTML5 and the latest XHTML is XHTML5. Anexample of paragraph in XHTML is:


Notice
the closing bracket. It is one of the important differences between HTML andXHTML. Elements must always be closed. Another difference is elements need tobe in lowercase. Earlier when Webpage coding in HTML, I could have an imagereference with "WIDTH" and "HEIGHT" but now in XHTML, it has to be "width" and"height." Here is an example:

src="images/YahooStyleGuidejpg" width="300" height="225" alt="Picture of YahooStyle Guide cover">


XHTML
is a cleaner and more consistent form of Webpage coding. For example, suppose Ihave a title that I would like to have bolded and in italics. Earlier in HTMLcoding you might have this:


Title will be bold
and italic


With
XHTML, here is what it should be:


Title will be bold
and italic


Notice with XHTML, the elements are
properly nested. The <b> is the opening and ending element and the nestedelement, , is closed off properly.


Tip: Webpage coding - reference link that opens in
new window


The magic bullet is:
target="_blank"


So if the URL is:


http://www.associatedcontent.com/article/5637082/biking_in_manhattan_along_the_hudson.html?cat=16"


Use the following HTML or XHTML code for your
reference link to open in a new browser window:


http://www.associatedcontent.com/article/5637082/biking_in_manhattan_along_the_hudson.html?cat=16" target="_blank"> Your link text


Here is a link sample to test:


http://www.associatedcontent.com/article/5637082/biking_in_manhattan_along_the_hudson.html?cat=16" target="_blank"> Link test - Biking in Manhattan


What this does is allows the reader to
easily come back to your article page. Otherwise, the reader is taken from yourarticle to a new Web page with no back button. The reader will have to findtheir way back or will abandon your article because it is too much trouble.


References


The Yahoo! Style Guide

Published by Cheryl McCann

Cheryl is ready to explore the next travel destination whether it is more of the USA or Europe, Canada, Mexico or The Caribbean. She likes discovering culture, geography and history of new locations. She is...  View profile

32 Comments

Post a Comment
  • Mike Oberg2/7/2011

    I know some HTML but the text editor works OK for me most of the time. It seems some of your HTML examples were "swallowed" in the publishing process.

  • Rena Sherwood8/26/2010

    Must be a good article -- I didn't quite understand it :-)

  • Shethy Luve Stuckey8/24/2010

    thanks for the techno info!

  • Bridget Ilene Delaney8/14/2010

    Returning comments . . . I'm WAAAAY behind. One of these days, I'll be caught up . . . for now, reading and PV love!

  • Jasmine Watts8/10/2010

    thank you! this is great

  • Mildred Windham8/9/2010

    thanks for the info..

  • Jennifer Waite8/8/2010

    Thanks for the info!

  • Bridget Ilene Delaney8/7/2010

    I'm doing some quick return comments today. I've really got to catch up with my writing, but I had to make sure to get a webpage done, too! Then, I've got a lot of things happening for which I'll need money! I'll have to get my butt in gear and write, write, write, write. However, please, also do me a favor and visit www.everlastinglight.tk

  • Anne Wright8/5/2010

    Well done, I promptly forgot everything I was taught about HTML when I stopped using it but even I understood most of this

  • Becca Greiner8/4/2010

    I took an HTML class back in high school, but XHTML is very new and foreign to me. Thanks for the heads up.

Displaying Comments
Next »

To comment, please sign in to your Yahoo! account, or sign up for a new account.