web-standards

What is semantic markup, and why would I want to use that?

廉价感情. 提交于 2019-12-12 07:56:42
问题 Like it says. 回答1: Using semantic markup means that the (X)HTML code you use in a page contains metadata describing its purpose -- for example, an <h2> that contains an employee's name might be marked class="employee-name" . Originally there were some people that hoped search engines would use this information, but as the web has evolved semantic markup has been mostly used for providing hooks for CSS. With CSS and semantic markup, you can keep the visual design of the page separate from the

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

♀尐吖头ヾ 提交于 2019-12-12 04:28:58
问题 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 cannot handle any more recursion? I would think this would be different for each browser, and different also for mobile apps. Is there a web standard, such as the maximum

Are there any web standards for voice over IP?

淺唱寂寞╮ 提交于 2019-12-11 23:51:28
问题 Web browser plug-ins such as Flash already provide VoIP functionality in a web browser, but is it possible to have browser VoIP without any plug-ins? Ericsson Labs has posted information using the device element to allow for microphone input. This, in addition with WebSockets could be used to implement VoIP. However, the device element is not implemented in any web browser yet. 回答1: No there isn't but the device element will likely be the way in the future, as you mentioned. I don't think it

Attributes in elements closing tag?

梦想的初衷 提交于 2019-12-10 17:53:31
问题 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? 回答1: No it isn't. You must use attributes in the opening tag. Running <a>test</a href="tst.html"> in w3c validator results in this error: name start character invalid: only S separators and TAGC allowed here Where S separators and TAGC are: S is "whitespace"

are multiple linear white space allowed in http header

爱⌒轻易说出口 提交于 2019-12-10 14:36:10
问题 I'm trying to understand http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 HTTP/1.1 header field values can be folded onto multiple lines if the continuation line begins with a space or horizontal tab. All linear white space, including folding, has the same semantics as SP. A recipient MAY replace any linear white space with a single SP before interpreting the field value or forwarding the message downstream. LWS = [CRLF] 1*( SP | HT ) Can i put any number of <CR><LF><SP> , without

Is it good practice to add a php include of the head section in my pages?

余生颓废 提交于 2019-12-09 13:32:58
问题 I am creating my portfolio site and I am wanting to include the head section as a php include on my page. Reason being is because the site will have a fair few pages and I will want to make changes later on to things later on like tidying up the css files. For example; <head> <?php include('head.php'); ?> </head> as opposed to all this below being shown on each and every page: <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta

What are the url parameters naming convention or standards to follow

末鹿安然 提交于 2019-12-09 04:08:30
问题 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. 回答1: I recommend reading Cool URI's Don't Change by Tim Berners-Lee for an insight into this question. If you're using parameters

IE8, compatibility view on local files?

浪子不回头ぞ 提交于 2019-12-08 19:20:38
问题 I just developed a small website and tested it locally in IE8, there is no compatibility view button but under settings i find an option called "display intranet sites in compatibility view" , this option is checked so i trust that all local files are rendered as IE7. I then upload the page to my server and everything works fine in IE8-mode, now the the comp-view button is visible, i click it and my design becomes fubar! I go to the settings for comp-view and uncheck the "display intranet

What are pros and cons to use vendor-specific extesions , which are not included in W3C specifications?

霸气de小男生 提交于 2019-12-07 19:39:29
问题 I edited my question What is a vendor specific extension? A vendor specific extensions can start with a “-” (dash) or a “_” (underscore), usually followed by an abbreviation of the company or the browser project the extension is specific for, f.i. “-moz-” for Mozilla browsers, or “-webkit-” for WebKit based browsers. This vendor specific prefix is followed by the property name. A good example of this is -webkit-border-radius, or -moz-border-radius. IE has 3 things .htc file support (it's same

What exactly is “IE5 quirks” in IE 10 Developer Tools? [duplicate]

[亡魂溺海] 提交于 2019-12-07 05:52:19
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Does the windows 8 internet explorer 10 still have quirksmode? I'm working on a website which we're trying to get to work in IE10. In this site we have an iframe which is breaking when we're using IE5 quirksmode which we really need for the main site to work, for some reason we can't just use the Quirks document mode in IE10, because then the main site wont work. So what the heck is IE5 quirks and is it the same