web-standards

What does “href” stand for? [duplicate]

橙三吉。 提交于 2019-12-18 17:10:35
问题 This question already has answers here : What does “href” stand for in HTML? (4 answers) Closed 6 years ago . After writing html for couple of years I realized that I don't really know why the href attribute is named "href" . The HTML Recomendation does not shed light on the subject by saying : This attribute specifies the location of a Web resource, thus defining a link between the current element (the source anchor) and the destination anchor defined by this attribute. Also the HTML 4.01

What is the best way to create standards-based, cross-browser compatible rounded corners in Drupal?

吃可爱长大的小学妹 提交于 2019-12-18 13:26:26
问题 I am currently working on a Drupal 6 theme, for which designer is explicitly requesting to use A LOT of rounded corners. I could of course create the rounded corners - traditionally - with images. But I know there must be also better and easier ways of creating rounded corners. Optimally, I would like to write my CSS as standards-compliant CSS3, with selectors like: h2 {border-radius: 8px;} Use of browser-specific is CSS is very OK also, like h2 {-moz-border-radius: 8px; -webkit-border-radius

Blank image encoded as data-uri [duplicate]

霸气de小男生 提交于 2019-12-18 09:53:33
问题 This question already has answers here : Smallest data URI image possible for a transparent image (9 answers) Closed 3 years ago . I've built an image slider (based on the terrific bxSlider) which will preload images just-in-time before they slide into view. It's working pretty well already, but I don't think my solution is valid HTML. My technique is as follows: I generate the slider markup with the first slide image being inserted as usual (with an <img src="foo.jpg"> ) and subsequent

How can HTML5 “replace” Flash? [closed]

我怕爱的太早我们不能终老 提交于 2019-12-17 17:28:40
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . A topic of debate that's seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5. There are those that

Shouldn't we use <noscript> element?

谁说我不能喝 提交于 2019-12-17 17:21:31
问题 I found some good cons here: The noscript element only detects whether the browser has JavaScript enabled or not. If JavaScript is disabled in the Firewall rather than in the browser then the JavaScript will not run and the content of the noscript element will not be displayed. Many scripts are dependent on a specific feature or features of the language being supported in order for them to be able to run (for example document.getElementById). Where the required features are not supported the

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

白昼怎懂夜的黑 提交于 2019-12-17 11:21:08
问题 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 opera is yyyy-mm-dd , and I very explicitly need dd-MMM-yyyy . Is there any way to control this output, currently? 回答1: The HTML5 date input field is specific

Valid content-type for XML, HTML and XHTML documents

橙三吉。 提交于 2019-12-17 07:14:16
问题 What are the correct content-types for XML, HTML and XHTML documents? I need to write a simple crawler that only fetches these kinds of files. Nowadays http://example.net/index.html can serve for example a JPEG file due to mod_rewrite, so I need to check the content-type from response header and compare it with a list of allowed content-types. Where can I get such a list from? 回答1: HTML: text/html , full-stop. XHTML: application/xhtml+xml , or only if following HTML compatbility guidelines,

What's the difference between ISO 8601 and RFC 3339 Date Formats?

蹲街弑〆低调 提交于 2019-12-17 06:21:00
问题 ISO 8601 and RFC 3339 seem to be two formats that are common the web. Should I use one over the other? Is one just an extension? Do I really need to care that bad? 回答1: Is one just an extension? Pretty much, yes - RFC 3339 is listed as a profile of ISO 8601. Most notably RFC 3339 specifies a complete representation of date and time (only fractional seconds are optional). The RFC also has some small, subtle differences. For example truncated representations of years with only two digits are

What characters are allowed in the HTML Name attribute inside input tag?

拜拜、爱过 提交于 2019-12-17 04:02:07
问题 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 parentheses? Spaces? 回答1: The only real restriction on what characters can appear in form control names is when a form is submitted with GET "The "get" method

Absolutely positioning everything on a website?

假装没事ソ 提交于 2019-12-13 12:05:50
问题 I had a discussion with someone about absolute positioning. He claims that the best practice to secure that everything looks all the same across most browsers and that it's the easiest way to maintain the looks and feel that you intended for a website. I disagreed with his opinion, that absolute positioning would be the remedy and an overall best approach to laying out a webpage. In my case, I've been more keen on using the approach of margin/width/careful floating adjustments, and sometimes