
how-to block ads
|
| | | | FAQ Revisions | Editors: graffixx , Entelligence , Steve , big greg  Last modified on 2006-07-27 17:34:41 view: single page · printable | |
General | 1.1 How To | 1.2 How To: Apache | 1.3 How To: IIS | Scripting | 2.1 How ToNo questions in this section yet | Web Standards | 3.1 How To | 3.2 Tools and Utilities | Programming | 4.1 How To | 4.2 Tools and Utilities | Links | login and you can contribute to the FAQ
|
|
1 General·What forum software should I use? ·What are some of the major programming languages? ·What language should I choose for my web pages? ·Can you recommend an HTML cheatsheet? ·What is SSL and why do I need it? ·What free blogging applications are available? ·Where can I find a listing of IIS Status Codes?
| | (back) | Snitz works well if you are looking for an ASP based free solution. Most other popular software is based on PHP, including YaBB SE and phpBB.
A long list of forum and content management system software is listed in /forum/remark,7962246
feedback form
feedback form
by masloki edited by big greg  last modified: 2005-06-10 07:24:25 | | (back) | There are many popular programming languages. Here's a brief list of some you may have heard of.
C and C++ are very powerful languages that have withstood the test of time. They can be hard to learn. Most commercial programs are written in C or C++ languages. The C++ language evoved from C in order to support "object oriented" programming. C is the language of choice if you are running in embedded devices or wherever resources are scarce. For example, much of Linux is written C.
Visual Basic is a Microsoft technology that is easy to learn. While it is a good language for beginners, it's performance and lack of control (compared with C++) can be a problem. As a result, there aren't very many professional programs released using VB. Microsoft IIS comes with Active Server Pages (ASP), which is most often used with a Visual Basic variant called VBScript.
Perl is a language that is also found on many Unixy systems. It is excellent at string parsing. This site is written in Perl.
Java is a language created to run in embedded devices. It features object oriented programming with automatic memory management and "write once run anywhere" operation. Java is becoming very popular as the "back end" to large web sites.
Javascript (also known as ECMAscript) is a language that runs in your browser. It is used to create a more dynamic user interface experience. Javascript is not the same as Java, even though they share the same syntax. The use of Javascript used to be limited to simple UI manipulation. New Javascript based applications (like GMail and Google Maps) use a large Javascript application that communicates with a remote host using XML. This combination is called Ajax (Asynchronous JavaScript and XML).
feedback form
feedback form
by gameboyrom edited by big greg  last modified: 2005-07-16 09:06:20 | | (back) | If you are creating static (unchanging) web pages, HTML is the standard page rendering language for the Internet. In order to produce web pages, you will need at least a basic understanding of HTML and how it works. More advanced HTML techniques will provide a better user experience, but may not be viewable in all browsers or even different versions of the same browser.
HTML 4.01 was the last major HTML standard. It was released in December, 1999. The next generation is called XHTML, which finally arrived in 2002. An XHTML file is a special type of XML document that looks very much like HTML 4.01, and appears to be HTML 4.01 to older browsers.
If you want to incorporate graphics into the web pages, you should become familiar with the different formats used on web pages, such as .GIF, .JPG, and .PNG. There are several good utilities available to assist you in converting graphics for use on the web.
There are other "back end" languages, such as PHP, ASP, and Cold Fusion, that allow you to create dynamic (changing) web pages based on content that typically comes from some sort of database. These languages typically "piggyback" onto the HTML pages, allowing you to put programming information directly into your web pages.
Also see /faq/6870
feedback form
feedback form
by Mospaw edited by big greg  last modified: 2005-07-16 08:49:54 | | (back) | There are lots of HTML references on the web, but this one puts all the tags on one screen: Compact Index of HTML Tags for quick reference. It does have one drawback--the tags haven't been updated to HTML 4/XHTML 1 standards.
For more in-depth and current information, these are very good, just not as compact:
»www.ncdesign.org/html/list.htm »www.mountaindragon.com/html/
feedback form
feedback form
by climbers edited by Steve  last modified: 2004-02-05 21:14:16 | | (back) | SSL (Secure Sockets Layer) is a protocol that encrypts the data flowing between your browser and the web site you are visiting.
An SSL-encrypted HTTP session is initated by using the "https" method on the URL (Uniform Resource Locator).
Your browser connects to the web server and begins a complicated dialog to establish a secure channel and verify the site's identity.
The channel is secured using a "handshake" protocol that creates a Session. The web site server sends its "certificate" to the browser. The browser then tries to verify the validity of the certificate. If the certificate is valid, the handshake protocol performs a key exchange so that each end (the web site and server) have keys to encrypt and decrypt the data.
If you connect to a site with https: and you get a warning about the certificate, it means your web browser was unable to authenticate the web server's certificate with a recognized certificate authority. This means you cannot be absolutely certain you are talking to who you think you are. If you are certain, you can still proceed and establish the SSL Session. Your data will be encrypted just the same, but you will not have verified the remote web site server's identity.
It's unlikely (but technically possible) to steal personal information like passwords and credit card numbers by listening into web site traffic. The encryption of the data means that as web site data passes from router to router, nobody can read your credit card information until it gets through the Internet and safely to your web server.
Web site pages encrypted with a 128-bit session key are considered "computationally secure". This means that with current technology, the 128 bit session key cannot be cracked in anything less than several days.
An interesting feature of the SSL protocol allows either the client or server to request new encryption keys at any time. Nobody does this now, but it would be an extra measure of protection when computers get fast enough to crack the 128-bit SSL key.
feedback form
feedback form
by big greg  last modified: 2004-05-30 19:33:14 | | (back) | There are several free packages available on the web to help you get started in the blogosphere:
•Movable Type - offers a free single-user edition that supports one user and unlimited blogs. Requires perl and a MySQL, SQLite or Berkeley database. •Wordpress - Requires php and a MySQL database. •NucleusCMS - Requires php and a MySQL database. •b2evolution - Requires php and a MySQL database. •TextPattern - Requires php and a MySQL database. •Serendipity - Requires php and a MySQL database. •boastMachine - Requires php and a MySQL database. •Geeklog - Requires php and a MySQL database. •ExpressionEngine - Comes in a limited capability free version. Requires php and a MySQL database.
Please submit packages not listed. Last updated January 24, 2006.
feedback form
feedback form
by state edited by big greg  last modified: 2006-01-24 06:29:52 | | (back) | SUMMARY When users try to access content on a server that is running Internet Information Services (IIS) through HTTP or File Transfer Protocol (FTP), IIS returns a numeric code that indicates the status of the request. This status code is recorded in the IIS log, and it may also be displayed in the Web browser or FTP client. The status code can indicate whether a particular request is successful or unsuccessful and can also reveal the exact reason why a request is unsuccessful.
»support.microsoft.com/default.as···s;318380
feedback form
feedback form
by izy edited by Entelligence  last modified: 2006-07-27 17:30:53 |
1.1 How To·How do I host a site? ·How do I edit HTML? ·How do I find registrars for the country-code domains? ·How do I test with older versions of Internet Explorer? ·How do I fix my site if it works with Internet Explorer, but not with Firefox? ·How do I control search engine spiders who access my web site?
| | (back) | Domain Name The first thing that you will need to do is decide how your site is going to be accessed. You can either access the site via IP address, or domain name. If you choose to use a domain name, you will have a few more decisions to make. You can get a free subdomain, but we recommend that you spend about $10/year to get your own domain.
DNS After that you will need a DNS (Domain Name Server). You can either pay for DNS, use a free DNS server, or host your own DNS server. If already have a hosting plan, your provider may provide you with DNS.
Hosting The last thing that you have to worry about is hosting. Like the last option, you can either use free hosting, paid hosting, or host your own.
For more information on any aspect of hosting check out our Webhosting Chat forum and also the Webhosting FAQs.
feedback form
feedback form
by Entelligence edited by big greg  last modified: 2005-05-13 17:26:47 | | (back) | HTML files are simply text files. So you can use any text editor, even lowly Notepad. However, there are a number of good HTML specific editors out there that will fit the bill. What you want out of an editor will determine which one you use.
If you are interested in a free HTML editor, please see our list of free HTML or WYSISYG editors.
feedback form
feedback form
by Mospaw edited by big greg  last modified: 2005-11-04 14:22:55 | | (back) | An excellent resource is http://www.norid.no/domreg.html which has long listed all the two-letter country-code domains.
feedback form
feedback form
by Steve edited by big greg  last modified: 2005-07-16 08:47:21 | | (back) | Most of your web site visitors will use Internet Explorer 6.0, but you should also test your site in several other browsers. IE is extremely loose about that HTML it accepts. You should validate your HTML and test your site using Firefox (»www.mozilla.org/). You also should also test your site with IE 5.5.
Although Internet Explorer 6.0 has been out for awhile, there are still a fair number of people running IE 5.5, and the differences between IE 5.5 and IE 6.0 browsers is significant.
The following page will give you instructions on how to run IE 5.5 (and other older versions of IE) on your system. You just download a ZIP file, expand it somewhere, and double-click IEXPLORE.EXE... you are running 5.5. »www.skyzyx.com/downloads/
Another place to find old browser versions is kindly provided by evolt.org, where they seem to have a version of every browser you have never heard of. »browsers.evolt.org/
feedback form
feedback form
by big greg  last modified: 2005-07-16 09:11:54 | | (back) | Internet Explorer (IE) is very forgiving. It will take all kinds of malformed HTML and make it appear to be perfect. Most other browsers try to be a bit more strict. As a result, HTML/XHTML markup and CSS styles that work on IE may not work in other browsers.
If you look at your web statistics, you will see that most people still use IE. Besides the people that have to run another browser because of their operating system, many of these non-IE people browse with Firefox (almost all operating systems) and Safari (Apple OS X). Smaller numbers of visitors will also be using browsers like Opera or Konqueror.
As a web developer, you want to write your code to one set of rules called Web Standards. Those same rules are carefully implemented by the browser. In a perfect world, you would write perfectly valid code, and all the browsers would render your site perfectly. But this isn't the real world.
After you make lots of pages, you will come to what every experienced web developer knows: browsers suck. You will have to account for various bugs in various browsers.
So, what's your best chance of having your site be visible to the widest audience? It's simple. Just validate your markup and styles.
Valid markup (HTML/XHTML) and styles (CSS) will most likely let your site render reliably in all browsers.
It is a good idea to use Firefox for your browser while you develop your site. Not only it is an excellent browser, it has a great plugin called "Web Developer" that will validate the markup you are looking at... and also help you in lots of other ways. If you use a standards compliant browser for development, you will develop markup and styles that are close to web standards.
Each time you come to a breaking point, validate your code. There are free online tools to validate your styles and another tool to validate your markup. After validation, you will generally see that your validated code will usually work fine in all those non-IE browsers. Congratulations!
After you have validated markup and styles, look at your site in IE. Most of the time IE 6 will also work. The markup should be ok, but the styles may not be. There are unique things to IE 6 you may have to work around (most famously, the broken box model). And if you care about IE 5.5 (most do) you have to account for a whole bunch of other bugs. You can handle all that with CSS stylesheets that account for different browser versions.
feedback form
feedback form
by big greg  last modified: 2005-07-11 09:04:49 | | (back) | Search engine spiders (or robots, or crawlers) are programs written to follow the links on a website for the purposes of adding the information to its search results. You might notice in your log some hits that look like this:
207.46.98.62 - - [14/Nov/2004:04:51:13 -0500] "GET /robots.txt HTTP/1.0" 200 69 "-" "msnbot/0.3 (+http//search.msn.com/msnbot.htm)"
This is an example of a search engine spider (msnbot, in this case) requesting files from your server. But how do you prevent a bot from doing this, or how do you direct a bot to only index certain portions of your site?
Using robots.txt
To define what a spider can and cannot do on your site, we can use the Robots Exclusion Standard. You will notice in the example above a request is made for /robots.txt. When a robot first visits your site, it checks for this file first to find out what it is allowed to look at.
Start by creating a file called robots.txt and place it in the root directory of your webserver. In the following example, we will block access to the entire site to all bots:
To block access only to a special directory on your site (in this case, /secret):
User-agent: * Disallow: /secret/
You can also block only one bot (again we'll do msnbot):
User-agent: msnbot Disallow: /
Are you getting 404 (not found) errors when robots try to find robots.txt? Even if you don't want to block any robots at all, create a robots.txt with the following, which allows all robots access to your entire site.
Misbehaving robots
Most of the more popular search engine spiders (msnbot, Yahoo! Slurp, googlebot) are well-behaved and will obey your directives. Keep an eye on your logs to make sure that they do obey. If you believe they are not doing as they should, you should report it to the bot owner. There is usally a URL in the bot's user-agent string you can visit to find out details about who's running it, how to contact them, and so forth.
Since misbehaving robots don't pay attention to robots.txt, you may have to block the offending robot's traffic. You can do this by examining your logs to see what sort of signature the robot can be identified by when it comes to your site. You may choose to block the robot's traffic by IP address or "user-agent" (what a robot calls itself).
The robots meta tag
There is another method of controlling access to your content. This one works on a page-by-page basis. Add the following line inside the head section:
<meta name="robots" content="noindex, nofollow" />
This will tell any robot not to index this page in its search results, nor should it follow any links on the page.
For more information on web robots and robots.txt, visit The Web Robots Pages.
feedback form
feedback form
by rjackson edited by big greg  last modified: 2004-11-22 09:40:28 |
1.2 How To: Apache·How do I use .htaccess ? ·How do I use Server Side Includes (SSI) with .html files?
| | (back) | .htaccess can be used for more than implementing custom error pages or password protected directories. Here's a Comprehensive guide to .htaccess
feedback form
feedback form
by climbers edited by big greg  last modified: 2004-05-31 08:24:19 | | (back) | Although most people say you can't, you sure can, if you are running Apache! Just make a .htaccess file in your root directory with this in it:
AddHandler server-parsed .html AddType text/html shtml
feedback form
feedback form
by Tom edited by big greg  last modified: 2004-05-31 09:03:11 |
1.3 How To: IIS·How do I use an IPsec Packet Filter to protect my Windows server? ·How do I increase the connection limit for IIS 5.1 on Windows XP Pro? ·How do I rewrite a URL in IIS like mod_rewrite for Apache? ·How do I run Perl under IIS? ·Can I manage my IIS installation from another computer running Windows?
| | (back) | It doesn't matter if you are running Apache or IIS, Windows leaves a lot of vulnerable ports open.
Check which of your ports are open by going to this site's port scan tool /scan
In security, you want to adopt a "belt and suspenders" approach to most things. In this case you may want to use second second port scan tool. A well known port scan tool you can try is ShieldsUP! at »www.grc.com/ (skip through the cover page by clicking the ShieldsUP! logo then find the link for the test, about halfway down the page, click through the disclaimer, then click "all service ports").
If you are running Windows 2000 Server, Windows 2000 Professional, Windows 2003 Server, or Windows XP Professional, you can use the built in IPsec facility to make a packet filter. The IPsec facility allows you very granular filtering: by IP address, port, and protocol.
If you have XP Home, you can't set up an IPsec packet filter. Your best move is to upgrade to XP SP2 and use its built-in firewall.
If you are running a public web server you really should consider one, even if you already have a firewall.
To setup an IPsec packet filter on Windows 2003 Server see »www.microsoft.com/technet/prodte···159.mspx For more information, including Windows 2000 Server, see »www.microsoft.com/technet/itsolu···cld.mspx
You should also consider using a packet filter if you take your laptop to public hotspots, or you move it between the network at home and the network at work.
There's no substitute for keeping your system up to date: Windows Update is your friend. Run it at least once a week on your production servers, and set all your clients to install patches automatically.
feedback form
feedback form
by big greg  last modified: 2005-11-04 14:23:17 | | (back) | Windows XP Professional runs IIS version 5.1, which comes with a 10 connection limit. Often that's not enough when you are testing a site from multiple browsers (or multiple locations). You can easily increase the limit to the hardcoded maximum: 40 connections.
Make a command prompt window (start, run, cnd.exe) and issue these commands. The first command connects you to the adminscripts folder. The second command runs a script that sets the MaxConnections value in the IIS metabase to 40 (the maximum allowed). The third command (iisreset) shuts down and then restarts IIS.
feedback form
feedback form
by big greg  last modified: 2005-06-09 09:24:20 | | (back) | The feature of Apache lets your web site take a URL and rewrite it for passing to your server side scripts.
ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions. It takes the same regular expressions and options as Apache's mod_rewrite.
It comes in two versions: ISAPI_Rewrite Lite is free. It doesn't support per-virtual-site configurations, proxy, and few other options. ISAPI_Rewrite Full is the full product, available on a try-before-you-buy basis.
More information and downloads are available by going to »www.isapirewrite.com/
feedback form
feedback form
by big greg  | | (back) | Perl is a cross-platform scripting language. Several free packages for web sites are written in Perl. The Perl interpreter is mature and easy to install. Once you install Perl, you can use it to run Perl scripts from the command line or for web pages under IIS for Windows 2000 and later (IIS 5, 5.1, and 6).
Many web tools are written in Perl, including MRTG and AWStats.
For a free Perl installation, go to the ActiveState site and follow the links to download and install Perl. The installer does a good job at setting up your IIS system to run Perl scripts for web pages.
Download ActiveState Perl from »www.activestate.com/
feedback form
feedback form
by big greg  last modified: 2005-06-09 09:22:28 | | (back) | Yes.
If you are running Windows XP you can run the IIS 6.0 plugins on your computer. Just download the Windows Server 2003 Administration Tools Pack from Microsoft. »www.microsoft.com/downloads/deta···ylang=en
feedback form
feedback form
by big greg  |
2 Scripting·What is ASP? ·What is ASP.NET? ·What is Perl? ·What is PHP? ·What is this static and dynamic stuff?
| | (back) | ASP (Active Server Pages) is a server side scripting technology that allows developers to easily connect to databases and generate dynamic web pages.
ASP is primarily used on Microsoft/IIS platform, but ports for U*x are available. If you are intending to use a non-Microsoft platform, you may be better off using PHP.
For assistance in learning ASP, check out »www.w3schools.com and »www.learnasp.com
feedback form
feedback form
by devin edited by big greg  last modified: 2005-06-10 07:17:21 | | (back) | ASP.NET is a subset of the Microsoft .NET platform, primarily intended for developing dynamically generated web pages.
Distinct features of ASP.NET include the use of full featured languages such as VB.NET or C# as a development language, compiled assemblies resulting in large performance gains over traditional scripting technologies (ASP, PHP), and many other enhancements to traditional web application programming.
Currently ASP.NET will run only on Microsoft/IIS 5 platforms, but open-source UNIX variants are in development.
More information can be found on »www.asp.net and »www.w3schools.com/ngws/
feedback form
feedback form
by devin edited by big greg  last modified: 2005-06-10 07:26:21 | | (back) | Perl is a language originally developed for use in Unix systems to manipulate large amounts of text. It has evolved into a very powerful general purpose scripting language that is commonly used to produce programs the run though the CGI (the Common Gateway Interface) on web servers.
Perl is especially good at processing large and arbitrary amounts of text, such as logs or user input. Later versions can access databases, and even be used to produce Windows applications. Perl syntax can be difficult to read, but once mastered, there is little you cannot do with Perl. In fact, BBR itself is written in Perl.
Perl 1.0 was released in 1987. It was created by Larry Wall. Perl runs just about everywhere: Unix (all), Macintosh (OS 8 and X), Windows (all versions), and lots of other platforms. See »www.perl.org/ for lots of information on Perl.
feedback form
feedback form
by Mospaw edited by big greg  last modified: 2004-05-31 07:02:15 | | (back) | PHP is a "backend" general purpose scripting language designed to interface easily to databases and provide for a means to create dynamic web pages. PHP is typically used on *NIX based systems, but ports have been made to support Windows as well.
PHP code is typically integrated into the the HTML pages themselves, providing an easy way of adding dynamic content to a web page. The latest version of PHP, can be found here, is also designed to directly interface to a variety of databases, such as Oracle, MySQL, and PostgreSQL, to allow the creation of large, content-driven sites, for example, forums.
PHP is open-source freeware, and has a good user community. more information is available at www.php.net
feedback form
feedback form
by Mospaw edited by graffixx  last modified: 2005-06-14 10:55:16 | | (back) | What is it? In programming, static and dynamic are terms used to describe content. Static content is content that is preset and doesn't change. Dynamic content is the exact opposite; it changes. Static Example Code:
<font face="Georgia, serif">Welcome User</font>
Displays on page: quote: Welcome User
Dynamic Example (PHP) Code:
<? $user = "Entelligence"; ?> <font face="Georgia, serif">Welcome <? echo $user ?></font>
Displays on page: quote: Welcome Entelligence
Just note that it will display welcome and (whatever the value of $user is).
Why would I want to use dynamic content?
There are many reasons that you might want to use dynamic content. One of the biggest ones is for personalizing. It seems a lot nicer when you go to a site and it says "welcome (your name)", rather than just "welcome user". You could also use it to display local weather, news, etc. for users based on their zip code. Dynamic content can also make a site easier to maintain.
How Do I add dynamic content to my site?
A very common web programming language for displaying dynamic content is PHP. This is very simple example of how to do this in PHP (note that PHP must be installed on your web server): First, lets declare our variable $user in our header.
<html> <head> <title>PHP Example</title> <? $user = "Your Name Here"; ?> </head> <body> <font face="Georgia,serif">Welcome <? echo $user ?></font> </body> </html>
That's it. Of course this is a very basic example and probably wouldn't have much use over static code. But if we wanted to; we could make $user = $sqluser and make $sqluser = an sql query to get the username stored in a database.
feedback form
feedback form
by Entelligence edited by big greg  last modified: 2004-06-07 07:53:00 |
3 Web Standards·What are web standards, and why should I care? ·Should I use frames for my web site? ·Where can I find guidelines regarding web standards and technologies? ·What are the HTTP error codes and their meanings?
| | (back) | Web standards are simply defined structures for how content should be created and distributed on the web. The W3C has set forth various languages and methods with specific guidelines as to what can and can't be used.
Examples include markup and presentation languages, such as XHTML, and CSS. There are others as well, such as the Document Object Model, but the main bread and butter of any web developer will be primarily XHTML and CSS.
Who cares? On the surface, these standards may seem unimportant. After all, even if your code isn't exactly correct it will still display, right? Well, not exactly. Your page may look how you intended in one browser, but look completely different in another. Or it may not render at all. Invalid code can also become unmanageable more quickly, making your job harder, and at worst you may drive away visitors who can't read or display your site. It also keeps your site "future-proof" by ensuring it will be compatible with new browsers when they come out, and you won't have to go back and rewrite your code to keep it working.
I use Internet Explorer, and so does most everyone else. So as long as it looks ok in IE, I'm fine with that. This is an unhealthy attitude some designers seem to have. Internet Explorer may have a large market share, but that's no reason you shouldn't ensure compatibility with other browsers as well. Complying with web standards ensures your page will work in all cases, no matter what the popular browser of the day is.
Accessibility Web standards go hand in hand with ensuring your site is accessible to all as well. It is estimated that 10% of the population online today have some form of disability which may impair their ability to access your site. This can range from vision impairments like blindness or color blindness, to reduced motor skills or reaction times.
It's not only just a good idea to keep these people in mind, it's also the law. In the United States and other countries as well, a set of standards has been developed to ensure people with disabilities can still access content on the web. Examples include U.S. Section 508 Standards and the W3C's Web Content Accessibility Guidelines 1.0.
Other advantages Even if the reasons above aren't good enough, using standards can help make your job as a developer easier. Keeping your markup clean and semantically correct makes it easier to read and maintain, and helps reduce bloat. Linking to a single CSS file sitewide is certainly easier than writing several thousand FONT tags.
Use of XHTML and CSS means your site is much more likely to work with up and coming technologies, such as browsers on TV, handhelds, phones, and other future devices.
Simple steps to complying with web standards Developing in accordance with these standards and guidelines is easy. These steps are just some of the basics.
- Pick a markup language and include a valid DOCTYPE.
- Pick a standard language for your markup, and code in accordance to its guidelines. Add the proper DOCTYPE at the top so the browser gets a heads up as to how your page should look. A DOCTYPE is important because without it, the browser will usually fall back on "quirks mode", rendering whatever tags it comes across basically up to its own interperetation.
- Put all style information about the page into CSS.
- Many of the old style tags found in HTML4 are deprecated. CSS is the new standard for defining how a page should look. CSS code can be placed either inline with the markup, or linked to an external file.
- Avoid vendor-specific tags.
- Some companies like Microsoft and Netscape have added to the language by coming up with coming up with codes that only work in their browsers. These additions are not approved by the W3C (although sometimes they are incorporated later on) and they will not provide a consistent look and feel for your site.
- Validate your code.
- Use tools like The W3C Markup Validation Service for your HTML and The W3C CSS Validation Service to make sure your pages are up to spec. There are also tools for checking accessibility standards, such as Cynthia.
- Use meaningful, well-formed link text.
- Links are the heart and soul of hypertext pages. You want to make sure the text you use in your link is meaningful to the link it represents, even if it's out of context of the page. Don't ever use the phrase "click here". Most people already know what to when presented with a link, so these directions are redundant. Also it's not relevant to the page you're linking to. A good rule of thumb is to think of links as nouns, not verbs. So avoid linking to action words, only people, places, and things. One good reason to do this is because people with vision impairments may use screen readers when visiting your page. A screen reader is software that speaks the text on the page with the use of a text-to-speech engine. A user with a screen reader may be tabbing through the links on your page and they need to know what each link represents.
- Avoid use of frames.
- In almost all cases use of frames is not needed and results in problems in accessibility, browser compatibility, search engine spidering and links found in search results. Read more in /faq/11216
- Test your pages in as many browsers and platforms as possible.
- Don't test exclusively in one browser, use a variety. Also keep in mind that even the same browser will render differently on alternate platforms. Take a look at your page in Windows, Mac OS, and Linux to get a better feel for how others view your site. If you don't have access to some of these systems, ask for a site check in /forum/webmonk and many users will be happy to provide screenshots.
Reading more about it This FAQ entry only scratches the surface of web standards and accessibility. There's a lot of good resources for learning more: /faq/webmonks World Wide Web Consortium Web Standards Group The Web Standards Project
feedback form
feedback form
by rjackson edited by big greg  last modified: 2005-07-16 08:45:31 | | (back) | 99.5% of the time, frames should be avoided when developing a website.
To the novice webmaster, frames may seem wonderful. However from the user's perspective, frames present a number of challenges.
Navigation The biggest (mis)use of frames on a website is to include a static menu on each page. However a frame will break the basic functionality of a browser feature people have come to rely upon: Back and Forward buttons. Trying to navigate back and forward on a frames page may not work exactly like the user expects, since the browser will only go back and forward within a certain frame - not the whole page.
Bookmarking Because the actual web address of each page in a frameset is hidden, you won't be able to bookmark to a specific page, only the main framed site. Yes, you could certainly view the source in your browser to determine the actual address and bookmark that, but this is cumbersome and too much to ask of the average surfer.
Search Engines For the same reason as above, frames make it difficult for search engines to index your site. Some may even ignore framesets altogether, or in most cases a user will get a result from a search query that links to a single page on your site, and they would view that page out of context since the rest of the frames wouldn't be present.
Accessibility Not all user agents are capable of rendering frames. This means that some visitors may simply be presented with a blank page. The HTML noframes tag is supposed to be used for non-frames browsers, but then you end up having to maintain two versions of your site - frames and no frames. This is more work in the long run for anyone. Usually most people just use the noframes feature to say something like, "Sorry, this page uses frames". This could completely lock out some visitors from your site - don't do that!
Frames Alternatives Even if all the reasons above don't apply, there's still hardly a good argument for frames when presented with a number of options for developing a site.
If you have a navigation section, or some other bit of content you want to remain the same on every page, you can use server-side scripting languages to include this information on the fly when the page is loaded. Examples of server-side languages are: SSI (Server-Side Includes), PHP (PHP Hypertext Preprocessor), and ASP (Active Server Pages). What is available to you depends on the type and configuration of your webserver, contact your hosting provider if you are not sure. Even if you are not fluent with these languages, it is very easy to learn how to use the include functions.
If you are using an iframe (inline frame) now, you can easily get the same look by putting your content into a block-level element (such as div or p) and style that element with height and width specifications, and using overflow: auto, which will render a scrollbar for any content that does not fit in the div. This method also has the added benefit of degrading gracefully in browsers that wouldn't support iframes or CSS: the content is still available without providing an alternate version.
So what about the other 0.5% of the time? So basically frames suck and there's newer, hipper alternatives. When might it be acceptable to use a frame? Perhaps if you have complete control of the user agents and the people accessing your site, you may be able to get away with frames. An example of this might be an intranet site that is only available for employess of a certain company, all of which use the same browser and don't have any disabilities which may make page viewing difficult.
Consider the alternative methods above first thoug |
|