Transcript
Page 1: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Best Practices in Web Publishing

Margaret Wong

Web Technologies Consultant

[email protected]

http://web.mit.edu/ist/web/reference/quickstart/best-practices/

Page 2: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Basic Components of Web Publishing

• Content creation

• Content organization

• Content presentation

• Content administration

• Content distribution

Page 3: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Content Creation

• Directly insert content in HTML

• Insert content “Word style” via WYSWIG

• Copy and paste from RTF documents

• Common formats displayable in modern web browsers without special plugins or programs

– Web pages: HTML, XHTML

– Images: JPG / JPEG, GIF, PNG*

* older browsers, such as Netscape 4, do not interpret PNG’s correctly.

Page 4: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Common formats that require additional plugins or programs installed

– Video / Audio: Quicktime (.mov), RealAudio / RealVideo / RealPlayer (.ram / .rm), AVI, Flash / Shockwave (.swf), MPEG video (.mpeg), MPEG audio (.mp3)

– PDF, Word, PowerPoint, Excel

Page 5: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Images on the Web

• JPG / JPEG

– Photographs

– Graphics with gradients / transitioning colors

– Graphics with mixed photographic image and line art

Page 6: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• GIF

– Line art

– Simple Transparency (fully transparent or fully opaque)

– Graphical text

– Animated icons

Page 7: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• PNG

– Variable Transparency (same toucan image with drop

shadow on different backgrounds)

– No animated icons (use MNG instead)

– Gamma correction (more uniform display across

platforms and screens)

Page 8: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Image Compression & Resizing

• Compress images to reduce web site loading time

• Use an image editing software to resize images and compress for web usage (Adobe Photoshop, Adobe Image Ready, Macromedia Fireworks, etc).

• Adobe Photoshop / Image Ready has a “save for web” function that is optimized for web graphics

• Do NOT resize images with HTML

– Browsers will load the full image

– Image will appear skewed or pixelated

Page 9: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

MIT Free Web Publishing Environment

• Web server – web.mit.edu

– Unix-based system (Athena)

– AFS permissions / rules apply

– Organizations, courses, and personal web spaces have a 1 GB limit

• http://web.mit.edu/organization/

• http://web.mit.edu/coursenumber/

• http://web.mit.edu/username/www/

Page 10: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Dynamic Functions

• Sites that use a database that returns live data

• Scripts that dynamically return search results

• web.mit.edu provides limited dynamic functions

• CGIemail (send e-mail through a form)

• Custom 404 pages

• Restrict access via certificates authentication

• XBitHack

• mod_alias functionality

Page 11: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Additional dynamic services integrated with web sites on web.mit.edu

– Custom Events Calendar

• http://web.mit.edu/ist/services/calendaring/events-custom.html

– Custom Google Search

• http://web.mit.edu/ist/google/(go to the Google session from 2:45-4:15 for more info)

• See Web Publishing References for more info

– http://web.mit.edu/ist/web/reference/

Page 12: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Content Organization / File Management

• The “landing page” of a category should be the index.htm or

index.html page (see next slide)

• Avoid putting all files in one directory unless you have less than

20 items total, including pages, images, stylesheets, and other

linked documents

• Create folders for content that can be grouped together, either

by topic, by date (such as news archives), or by type (such as

images, scripts)

• For larger sites, materials related to a specific section should be

placed in sub-folders within the larger category folder

Page 13: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu
Page 14: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

File and Folder Naming Convention

• Unix-based systems are case sensitive

– Research ≠ research ≠ RESEARCH

– Use all lowercase to be safe

– Include the file extension, such as .doc and .jpg

• Special characters get special treatment

– Do not use spaces in file or folder names

– Do not use periods, slashes, quotes, commas, semicolons, colons, symbols such as ~, @, $, &, +, ’ and accented letters, such as é, ç, æ, ñ

Page 15: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Name files base on page content’s subject matter that can be identified without opening the file (except index.htm/.html)

• Keep names brief

• If more than one word is necessary, use dashes or underscores in places of spaces

Page 16: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Dashes vs. Underscores

• Dashes are more visible when the URL is underlined (by default they are)

– http://web.mit.edu/the-file-name.html

• Underscores look more like spaces, so the name is more readable, but could get lost when the URL is underlined (look at your printout)

– http://web.mit.edu/the_file_name.html

Page 17: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Content Presentation

• Content Publishing via Dreamweaver MX 2004

– IS&T offers a free quickstart on Dreamweaver.

– Using Cascading Style Sheets (CSS) quickstart.

– Computer Training at MIT

• http://web.mit.edu/ist/topics/training/

– Quickstart Schedule

• http://web.mit.edu/ist/topics/training/training-QS.pdf

Page 18: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Some Basic Conventions

• Links in running text should be underlined (default) or a different color from the regular text

• Provide sufficient color contrast between linked text and non-linked text

• Use the same color for linked text throughout your content

• Do NOT use underlines on non-linked text

• Do NOT use the link color for non-linked text

Page 19: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Use header tags (<h1>, <h2>, <h3>, etc) in your content to help search engines identify what is important on your page

• Use headers in semantic order, such that <h1> isn’t followed by an <h3> without an <h2> in between. Some assistive technologies (i.e. screen readers) can create an outline of the headers. Out of order headings will create a broken outline

Page 20: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• If graphics are used for text, make sure the alt attribute of the image has corresponding text information

• If graphics do not contribute meaningful information, use an empty or null value in the alt attribute. For example, transparent GIF images used to hold spaces (spacers or struts) should use alt=“”

• Do NOT use alt=“ ” or alt=“<empty>”

• Do NOT use <blink> tags or infinitely looping images or materials that are eye candy rather than content

Page 21: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Use list items (<ul><li> or <ol><li>) instead of paragraphs with a bullet character (<p>&bull;)

• Use meaningful titles (<title>subject of your page, maybe include group name or acronym</title>)

• Use meta keywords and descriptions to help search engines find your site

– http://mit.edu/ist/web/reference/create/metatags.html

• Do NOT use frames, users cannot properly bookmark your pages

Page 22: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Content Administration

• Locking down sections of your pages

– Dreamweaver Templates(this will be a quickstart some day)

• Reference – http://itinfo.mit.edu/article?id=6750

– Library Items

Page 23: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Multiple content editors

– Check-in & Check-out

Page 24: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Macromedia Contribute 3

– Pilot project in

progress

– Saves edit drafts

– approval before

publishing live

– In Depth session

2:45-4:15

Page 25: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Content Distribution

• Putting your content on the Web

– File transfers via Dreamweaver MX 2004

– Setup Instructions – http://itinfo.mit.edu/article?id=6762

Page 26: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Remote Site

– Files on the web server

• Local Site

– Your computer desktop

• Testing Server

– Prototype (also on the web server)

Page 27: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Testing Server

– Use your own web space /afs/athena.mit.edu/user/m/e/meponine/dontindex/siterootfolder/

– Preview in a few different web browserssite may appear differently in different web browsers

Page 28: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

• Remote site

– Note: might need to reconnect / re-login

– Keep folder structures identical

– Double check in various browsers

Page 29: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Other File Transfer Methods

• Macintosh

– Fetch

– Terminal / Command line

• Windows

– FileZilla

– SecureFX

• See Secure File Transfer at MIThttp://web.mit.edu/ist/topics/filetransfer/index.html

Page 30: Best Practices in Web Publishing Margaret Wong Web Technologies Consultant meponine@mit.edu

Questions & Comments

Margaret Wong

Web Technologies Consultant

[email protected]

Presentation files will be at

http://web.mit.edu/ist/web/reference/quickstart/best-practices/

Visit the Web Publishing Reference web site

http://web.mit.edu/ist/web/reference/


Top Related