How does one target IE7 and IE8 with valid CSS?

Explicitly Target IE versions without hacks using HTML and CSS Use this approach if you don’t want hacks in your CSS. Add a browser-unique class to the <html> element so you can select based on browser later. Example <!doctype html> <!–[if IE]><![endif]–> <!–[if lt IE 7 ]> <html lang=”en” class=”ie6″> <![endif]–> <!–[if IE 7 ]> … Read more

What is the proper way to URL encode Unicode characters?

I would always encode in UTF-8. From the Wikipedia page on percent encoding: The generic URI syntax mandates that new URI schemes that provide for the representation of character data in a URI must, in effect, represent characters from the unreserved set without translation, and should convert all other characters to bytes according to UTF-8, … Read more

input type=”submit” Vs button tag are they interchangeable? [duplicate]

http://www.w3.org/TR/html4/interact/forms.html#h-17.5 Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities: the BUTTON element may have content. For example, a BUTTON element that contains an image functions like and may resemble an INPUT element whose type is set to “image”, but the BUTTON element … Read more

Is it valid to have a html form inside another html form?

A. It is not valid HTML nor XHTML In the official W3C XHTML specification, Section B. “Element Prohibitions”, states that: “form must not contain other form elements.” http://www.w3.org/TR/xhtml1/#prohibitions As for the older HTML 3.2 spec, the section on the FORMS element states that: “Every form must be enclosed within a FORM element. There can be … Read more