web-standards

What characters are allowed in the HTML Name attribute?

I have a PHP script that will generate <input>s dynamically, so I was wondering if I needed to filter any characters in the name attribute. I know that the name has to start with a letter, but I don't know any other rules. I figure square brackets must be allowed, since PHP uses these to create arrays from form data. How about parenthes...

how many users typically use the "forgotten password" flow?

I was wondering what the "standard" usage rate of the "forgot my password" flow is on other ecommerce/industry websites? Right now not that many people go through the "forgot my password" link on my website, but that's mainly because most people don't have passwords. I'm in the process of installing a new login (which will encourage peop...

Web Service: Single String Parameter Or Complex Type Parameters

Is it more or less acceptable (i.e. standard) to create a publicly-exposed web service with these method signatures: ThisMethodDoesSomething(ComplexType param) ThisMethodDoesSomethingElse(AnotherComplexType param) Or this: ThisMethodDoesSomethingAndSomethingElse(string xml) Where the operation being performed depends upon the XML ...

Specifying the value output of of an HTML5 input type = date?

I'd like to add native date pickers to my application, which currently uses a legacy, home-rolled system. Date input support isn't widespread, yet, but if I could present both implementations based on compatibility, that would be ideal. Is there any way to specify the output of the value given by an HTML datepicker? The default for oper...

Negative Margins, Hack or Not?

I've come across various posts where people are stating that negative margins are hacks. Thus I've strayed away from using them with exception to particular cases when I can justifiably use them, like throwing text off the screen with margin:-9999px Question, are negative margins a hack and when is it right to use negative margins? I'v...

Attributes in elements closing tag?

Is it considered valid to do the following: <li>stuff</li class="randomlengthclassname"> <li>stuff</li class="shortclassname"> <li>stuff</li class="reallyreallylongarseclassname"> or do the attribute have to be in the opening tag? ...

Why would one use RDF in a Web service definition?

I've been looking at the resources definition of the Change Management module of the OSLC. Why using RDF? Is this use related to semantic Web services? Thanks ...

What to do with ASCII escape characters in user-generated markup?

I'm using HTML Purifier, a PHP "filter that guards against XSS and ensures standards-compliant output," to sanitize/standardize user-inputted markup. This is an example of the user-inputted markup: <font face="'Times New Roman', Times">TEST</font> which generates: <span style="font-family:&quot;Times New Roman&quot;, Times;">TEST<...

Which DTD would you prefer for mobile sites, "XHTML Mobile" or "HTML 5"?

Which DTD would you prefer for mobile sites, "XHTML Mobile" or "HTML 5"? Is there any Mobile Html 5 Validator like W3C mobile OK validator for mobiles? Should we not use Html 5 for mobile phone now because W3C not recommending it.? ...

Cache-control: private and public

What should a http client do if server returned Cache-Control: private, public ? I have a feeling private should override public, but I can't find a confirmation in the RFC (other than MUST in private and MAY in public). ...

What are minimum requirement to show any content with styling on browser?

What are minimum requirement to show any content with styling on browser? My one curious friend who is learning about html and css asked some questions to me.with example. ( I uploaded his example page to my hosting) What are minimum requirement to show any content with styling on browser? Why this page is working with styling? see th...

Collection of standards in software development

Lets collect all together standards which are used in software development. I think we should follow this pattern: identification: [e.g.IEEE 123456789] title: [title in words] organisation: [organisation which released the standard] keywords: [e.g. area of the standard] description: [description as text date: [date or year it was relea...

What is the best argumented proof of the statement "IE6 is not standards compliant"?

I've met a new friend. That's a woman and she is a designer. And she has a strange attitude towards IE of version 6 (and older). She just LOVES it. And she has a strong argument: "when I started programming websites, there were no "correct" browsers", so she beleives, that IE is the most correct ever. I'm a programmer and I was always sc...

Mark some Javascript blocks as "special"

For some complicated reason, I need to mark some Javascript as "special", like this: <script type="text/javascript" someattribute="special"> var special = "I'm special!"; </script> <script type="text/javascript" someattribute="special" src="special.js"> </script> Is it possible to do this in way that complies with XHTML standards? ...

MVC Model best practice - How to handle non-user-input data

So, my question is that I have a model. My model has some data that is populated based on the id passed in through the url and set into a cookie, and the rest is user input, which is validated using data annotations. The "problem" I've come across is how to handle this non user input data. Do I put it in hidden controls and thus infla...

Should I use heading tags in my navigation menus.

Hey Guys, Ive always wondered about this. I like to create super navigation menus. The website I am currently working on for example has a blog tab at the top, which has a drop down with latest blog posts and some other stuff. Should I use heading tags for Semantics and SEO? Here is my current structure: <li class="submenu superme...

Extend XHTML with namespaces

Hi, I've seen this somewhere, but I don't remeber the page. I'd like to extend the HTML tags, so then I can add my own attributes to the HTML elements, I saw a example where the developer added a new xmlns to the page definition, so he could add new things and still be a valid XHTML. What is the name of this technique and where could ...

Create a HTML table where each TR is a FORM

Hi, I'm trying to create a table where each row is a form. I want that each input is in a different table division, but I still need that for example, all first inputs belong to the same table head and so on. What I'm trying to do is an editable grid. I dunno if I've explained myself, more or less this: <table> <tr> <form...