web-standards

HGROUP element removed from the HTML5 Specification. What alternative technique can be used instead?

倖福魔咒の 提交于 2019-12-03 12:29:47
As some of you would of heard the hgroup element is being removed from the HTML5 Specification . (For more info, see the W3C HTML Working Group's decision on request to drop hgroup from HTML5 on the W3C's Public Mailing List archives.) Now I'm currently working on the redesign of a site using this tag that creates a way of adding a sub heading. My current thoughts are to just add another hX tag under the main header, but I'm not sure if this would be semantic enough to do so. <h1>Darren Reay</h1> <h2>A developing web developer</h2> <p>Hello World</p> Could anyone either come up with a

Why do some major websites use invalid HTML?

北慕城南 提交于 2019-12-03 08:17:19
问题 I noticed that many websites, even Google and some banking sites, have poorly-written HTML with no quotes around the values of attributes, or using characters such as ampersands not escaped correctly in links. In other words, many use markup that would not validate. I am curious about their reasons. HTML has simple rules and it is just mind-boggling that they don't seem to follow those rules. Or do they use programs that just spit out the code? 回答1: Most people have gotten the answer

How is JavaScript library bloat mitigated with Web Components?

廉价感情. 提交于 2019-12-03 06:36:30
问题 As someone who has tried to find a way to help content authors develop and maintain big web sites by creating (HTML) components for years, I'm really excited to see web components gaining tracction at w3c, google and mozilla. But it seems to me that, there is no measure against javascript library bloat in the specifications. Say that I develop component A which has a dependency for underscore.js and want to use components B and C which have dependencies on lodash.js version 1.*, etc. I don't

Rem-Based Layouts, Zooming on chrome is inconsistent, PX vs REM

雨燕双飞 提交于 2019-12-03 06:36:05
I've been wracking my brain over this one, google searches don't really have much in the way of help or even documentation of this problem but it's greatly affecting my current conversion to a mobile-friendly design. Everywhere I go, everyone's touting using rem -based layouts as the new gold standard, and on the surface the virtues of this approach seem ideal (full accesibility support for both reference pixel based scaling and font-size scaling to support many DPIs and many screen sizes / settings). However I've run into a rather large snag, I'm finding that Chrome (and possibly all webkit

Learning HTML5 and CSS3 [closed]

天涯浪子 提交于 2019-12-03 02:07:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Imagine somebody today, March 1 2011, has never written a webpage and would like to know what they should read to start building web pages today. They don't care about backwards compatibility, but want to build with web standards so that they will be portable amongst as many browsers as possible (Yes I'm saying

How is JavaScript library bloat mitigated with Web Components?

冷暖自知 提交于 2019-12-02 20:13:13
As someone who has tried to find a way to help content authors develop and maintain big web sites by creating (HTML) components for years, I'm really excited to see web components gaining tracction at w3c, google and mozilla. But it seems to me that, there is no measure against javascript library bloat in the specifications. Say that I develop component A which has a dependency for underscore.js and want to use components B and C which have dependencies on lodash.js version 1.*, etc. I don't see any way to flag dependencies and library versions. This could lead to huge library bloat when we

What are the url parameters naming convention or standards to follow

二次信任 提交于 2019-12-02 17:55:56
Are there any naming conventions or standards for Url parameters to be followed. I generally use camel casing like userId or itemNumber . As I am about to start off a new project, I was searching whether there is anything for this, and could not find anything. I am not looking at this from a perspective of language or framework but more as a general web standard. I recommend reading Cool URI's Don't Change by Tim Berners-Lee for an insight into this question. If you're using parameters in your URI, it might be better to rewrite them to reflect what the data actually means. So instead of having

Learning HTML5 and CSS3 [closed]

偶尔善良 提交于 2019-12-02 14:11:04
Imagine somebody today, March 1 2011, has never written a webpage and would like to know what they should read to start building web pages today. They don't care about backwards compatibility, but want to build with web standards so that they will be portable amongst as many browsers as possible (Yes I'm saying I do not care if my web pages don't work with IE 4-8, Opera, Netscape, Mozilla, etc, I really don't care, because I've never used them, and that's likely true about those who will use the tools I'm building). This person has zero biases or bad habits because they've never done it before

Ampersands in hyperlinks cause W3C validation to fail

自作多情 提交于 2019-12-01 22:24:59
I have a reacurring problem. I code nice standards compliant code only to have it fail due to ampersands within some of the hyperlink urls. Does anyone know of a work around or hack for this. Thanks You should URL Encode the hyperlinks, so all characters are turned into a valid ASCII format and don't contain any (X)HTML entities. For C# use HttpUtility.UrlEncode , for PHP urlencode , for JavaScript encodeURI , etc... Finding the right method for the language you're using shouldn't be that hard. I code nice standards compliant code only to have it fail due to ampersands within some of the

Which HTML version should be chosen for a public website

前提是你 提交于 2019-12-01 18:36:29
问题 I am currently working on a website. After studying HTML5 and its features I want to go ahead with it. I want to use features like offline storage, data- attribs, simple chat support etc. but because HTML5 is not well-supported yet, I am a bit confused. I have always used XHTML 1.0 transitional until now; should I continue using it or should I use HTML5? I have seen the web giants like google have completely shifted to HTML5. 回答1: HTML5 is a set of mostly-unrelated features. You can use