web-standards

Dynamic mod_rewrite or how to plan a dynamic website

Hi, I'm trying to make a clean url for a blog on a dynamic website, but I think that the problem is that I don't know how to plan the website schema. I read about how to use mod_rewrite and all I found is how to make "http://www.website.com/?category&date&post-title" to "http://www.website.com/category/date/post-title". that's ...

Which doctype should I use for GWT 2.0?

I think I should use <!DOCTYPE html> for my new GWT application; I understand that doing so will put my application into standards-compliant mode. Am I correct? Are there any disadvantages to using this doctype? Does GWT work properly in standards-compliant mode? I'm wary because the GWT tutorial still uses the HTML 4.01 transitional doc...

What are cons if we do not care about validation of XHTML and CSS?

What are cons if we do not care about validation of XHTML and CSS? Errors other than CSS 3 and vendor specific properties In terms of development time(How valid XHTML and CSS code save time to find problems?), Code debugging (How we can track then problem quickly?), Cross browser compatibility (How it helps us to achieve cross browser ...

Tool to check if web server is following HTTP standard?

I'm writing a simple HTTP server which should play nicely with most clients, but is only meant to implement a subset of HTTP 1.1. During development it would be nice to be able to validate that the generated HTTP reponses are HTTP 1.1 compliant. Is there a tool that can do something along those lines? Thanks /Erik ...

How can I keep up to date on the latest web development standards?

First off, I know that this question begs the other question - should the latest web development standards be followed and further will they remain relevant? That aside, I am focused on GUI development, usability, etc. Front-end web development that utilizes XHTML, CSS, JavaScript, etc. I know there are many gurus and thought leaders o...

What is the most standard and compatible way to make a whole table row into a link?

Obviously you can't just surround the <tr> tag with an <a> tag and call it a day; this is invalid and doesn't even work. I have seen JavaScript used, but then what happens to browsers that don't support JavaScript? What is the best way to make an entire table row <tr> into a link? Edit: At the request of Lerxst, here is an example of a ...

Is there any pros to duplicate browser/keyboard functionality?

Is it good for user experience to duplicate browser/keyboard functionality? For example: to provide these links on a web-page. "Back to top" link "Print this page" link "Add to Favorite" link "Back" button/link "Text zoom" button Are they really create Site's usability and accessibility? How screen reader will behave these links, ...

Should I repeat label text in for="...." and id=".."?

Is there any cons of 2nd method? Why http://www.webstandards.org/ decided to use 2nd method Is first method better than first for screen reader users? First <label for="name">Name</label> <input id="name" /> Second <label for="n">Name</label> <input id="n" /> ...

RSS is the web standard for syndicating content - is there an equivalent for syndicating "actions"?

Most websites have content but many websites are transactional - is there an RSS-like scheme where a website can syndicate the "actions/transactions" their website provides? ...

Valid content-type for XML, HTML and XHTML documents

What are correctly content-types for this documents ? I need to write a simple crawler, that only fetches this kind of files. Nowadays http://somedomain.com/index.html can serve for example an JPEG file due to mod_rewrite, so I need to check the content-type from the response header and compare it with a list of allowed content-types. ...

Strict doctype - form and input element

Does anyone know the reasoning behind the strict doctype not allowing input elements to be direct descendents of a form element. I find it annoying that i have to wrap a submit button which is a block level element inside another block level element say a fieldset or a div. However, I cannot find an answer anywhere as to why this actua...

Local web apps and W3C standards.

If am writing a local app that will only run using a specific browser, am i setting my self up by slightly ignoring W3C's standards? I ask this question because in this app i am thinking of using custom HTML tags, custom attributes, etc... Thanks in advance guys. ...

Should I use dialog boxes in my web application?

I'm developing a typical web application with functions like add, remove, view, search and other yada yada. However, I'm uncertain how much I should rely on dialog boxes. Should I have a dialog box for adding information to the system or perhaps only as a confirmation when deleting something? I could also, for example, use a login dialo...

Multiple CSS Classes: Properties Overlapping based on the order defined.

Is there a rule in CSS that determines the cascading order when multiple classes are defined on an element? (class="one two" vs class="two one") Right now, there seems to be no such effect. Example: both divs are orange in color on Firefox <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt...

IE8 blacklisted domain forcing non-standards mode

I was doing some tests on IE 8 on a standards-compliant page, with a strict doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; However, apparently the page was being rendered in "IE 8 compat view"/"IE7 standards", which was breaking the layout. After looking around, I discovered that...

Text equivalents for icons that using css background-image property

If the element is not rendered successfully, the text equivalent will be displayed. For the <img> tags, we could use ALT attributes to represent the text equivalents. But things get complicated when the image is rendered as <span> + background-image css property. Since ALT attribute is only meaningful for <img>, it couldn't be used here...

How can Facebook make work external iFrames?

How can Facebook make work external iFrames? nThat's my quiestion. I have always know that for security reasons, external HTML iFrames (i.e. An iFrame with src attribute different from the actual domain root), but then I realized that Facebook iFrame applications does really work, something that really surprised me because I knew that th...

What steps can be taken to produce semantic, accessible, standards-compliant client-side output with ASP.NET Webforms?

I understand that it may not be possible to decouple the client-side from the server-side code in ASP.NET Webforms. What steps can be taken to produce a website on this framework that complies to web standards? I am particularly concerned with making the site accessible with JavaScript disabled, and compliant to WCAG2 at conformance lev...

Using the <legend> tag for input.

So I've got a form, who's content will change based on a dropdown list of different reports. So the question is, how horrible would it be to include a select box as the legend tag for the fieldset? I know that technically it works, and semantically it makes sense (the actual text of the legend tag, the selected value is a caption of th...

How many nested tags in HTML can you have before it crashes a browser?

I had a thought earlier today regarding nested HTML tags and how browsers render them: <html xmlns="http://www.w3.org/1999/xhtml" {or whichever html version} xml:lang="en" lang="en"> <head> </head> <body> let n = 1 <div> recurse div n times until maximum (browser fails) </div> </body> </html> what will n be when the browser cann...