xhtml-1.0-strict

valid xhtml meta tags for facebook open-graph and twitter cards

喜夏-厌秋 提交于 2019-11-28 02:25:58
to make valid: xhtml twitter cards facebook-graph-api for http://www.theyact.com/acting-classes/los-angeles/ I've managed to get my code to come up valid everywhere... save 1 error on http://validator.w3.org/ there is no attribute "property" but only 1 instance among the many in the code, only the below seems to ruffle the validator's feathers: <meta name="og:description" property="og:description" content="... I'd like the code to be completely valid in validator.w3.org's eyes. What am I missing? unor If you remove this element, the validator will complain about the next one containing the

Are single quotes valid in HTML/XHTML?

非 Y 不嫁゛ 提交于 2019-11-28 01:47:21
Are single quotes valid in HTML? And more specifically: XHTML strict. <table width="100%"> <table width='100%'> Yes, single quotes are valid. From the XML spec: [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" A source of confusion on this matter seems to come from this article, http://www.javascriptkit.com/howto/xhtml_intro.shtml which seems to claim that single quotes are not valid in xhtml. However, since no specification is cited, and since the article also claims that lowercase names for attributes and elements are forbidden, the author may merely be

Can we place `<img>` inside `<h1>` according to web standards?

有些话、适合烂在心里 提交于 2019-11-27 19:35:00
Can we place <img> inside <h1> according to web standards? like this <h1> Demo text <img src="anyimage.jpg"/> </h1> Yes, you can - the DTD says: <!ELEMENT h1 %Inline;> <!ENTITY % Inline "(#PCDATA | %inline; | %misc.inline;)*"> <!ENTITY % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;"> <!ENTITY % special "%special.pre; | object | img "> That basically means h1 can contain %Inline , which is made of various things, including img Look who is using it: http://www.w3.org/ <h1 class="logo"><a tabindex="2" accesskey="1" href="/"><img src="/2008/site/images/logo-w3c-mobile-lg" width=

XHTML won't validate && and < in a JavaScript function

自闭症网瘾萝莉.ら 提交于 2019-11-27 17:42:26
问题 Here's the snippet of code that won't validate: if (user_age > 15 && user_age < 91) It gets the following errors: XML Parsing Error: StartTag: invalid element name and XML Parsing Error: xmlParseEntityRef: no name The first error is thrown for the "less than" and the second one is thrown twice, once for each ampersand. Replacing the above signs with & and < validates fine, but of course it completely ruins the function. 回答1: Or you can protect the script from the xml validation like this:

Nest lists in paragraphs in html

烈酒焚心 提交于 2019-11-27 07:39:03
问题 It seems that (strict) html doesn't allow nesting any non-inline elements inside a <p> , but then how am I supposed to render a paragraph that contains a list (something that occurs often in natural texts). I've seen three answers that all seem unsatisfying: Lists should not happen inside paragraphs. (I'm not going to go into a cultural debate, but I certainly hope that html is not going to become the place to dictate writing style.) Separate the text into a paragraph, then a list, and then a

Can we place `<img>` inside `<h1>` according to web standards?

随声附和 提交于 2019-11-27 04:23:24
问题 Can we place <img> inside <h1> according to web standards? like this <h1> Demo text <img src="anyimage.jpg"/> </h1> 回答1: Yes, you can - the DTD says: <!ELEMENT h1 %Inline;> <!ENTITY % Inline "(#PCDATA | %inline; | %misc.inline;)*"> <!ENTITY % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;"> <!ENTITY % special "%special.pre; | object | img "> That basically means h1 can contain %Inline , which is made of various things, including img 回答2: Look who is using it: http://www.w3

html doctype adds whitespace?

二次信任 提交于 2019-11-27 02:20:41
问题 can someone please explain to me why having a doctype of <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> and <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> render the following block differently under firefox? <table style="border-collapse:collapse; margin:0; padding:0;"> <tr> <td style="border:1px solid red; margin:0; padding:0;"><img src="http://images.smh.com.au/2010/06/01/1533814/th_park-90x60.jpg" style="border:none; padding:0; margin:0;" /></td> </tr> </table>

Are single quotes valid in HTML/XHTML?

↘锁芯ラ 提交于 2019-11-26 21:59:56
问题 Are single quotes valid in HTML? And more specifically: XHTML strict. <table width="100%"> <table width='100%'> 回答1: Yes, single quotes are valid. From the XML spec: [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" 回答2: A source of confusion on this matter seems to come from this article, http://www.javascriptkit.com/howto/xhtml_intro.shtml which seems to claim that single quotes are not valid in xhtml. However, since no specification is cited, and since the

xHTML/CSS: How to make inner div get 100% width minus another div width

自古美人都是妖i 提交于 2019-11-26 15:05:19
I have 2 nested divs inside outer one, which has width:100%. Both nested divs should be in one line and first should get it size from it's contents: <div id="#outer" style="width:100%; border:1px"> <div id="#inner1" style="border:1px; display:inline"> inner div 1. Some text... </div> <div id="#inner2" style="width:100%????; border:1px; display:inline"> inner div 2... </div> </div> Question is how to make #inner2 div to get rest of the horizontal space if width of the #inner1 div is not specified and depends on what it is inside? P.S. All styles are in separate classes in my case, here I putted

xHTML/CSS: How to make inner div get 100% width minus another div width

十年热恋 提交于 2019-11-26 05:58:16
问题 I have 2 nested divs inside outer one, which has width:100%. Both nested divs should be in one line and first should get it size from it\'s contents: <div id=\"#outer\" style=\"width:100%; border:1px\"> <div id=\"#inner1\" style=\"border:1px; display:inline\"> inner div 1. Some text... </div> <div id=\"#inner2\" style=\"width:100%????; border:1px; display:inline\"> inner div 2... </div> </div> Question is how to make #inner2 div to get rest of the horizontal space if width of the #inner1 div