xhtml-1.0-strict

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

倖福魔咒の 提交于 2020-01-19 06:21:07
问题 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

Custom data in XHTML 1.0 Strict

♀尐吖头ヾ 提交于 2020-01-14 08:03:48
问题 I use some custom attributes in my html, for jquery stuff. I saw there are data-XYZ attributes in HTML5, but I need to be xhtml 1.0 strict. What other options do I have? 回答1: You can use the jQuery MetaData plugin which allows you to write data in the class attribute in JSON format: <li class="someclass {some: 'data'} anotherclass">...</li> Then in your jQuery, to get at the data: var data = $('li.someclass').metadata(); if ( data.some && data.some == 'data' ) alert('It Worked!'); This should

How can I produce an nested list in XHTML strict without giving the nested lists first element a double bullet?

筅森魡賤 提交于 2020-01-13 10:05:37
问题 I'm trying to create a list nested within a list using XHTML Strict 1.0. The problem is that with XHTML strict a ul element can not be nested directly within another ul element. Thus, the inner ul element has to be nested within a li element. However, when doing it this way, the first row of the inner list get a dubble bullet, as shown in the example below. So now B gets a double bullet since the outer and inner li elements both create a bullet. Do anyone know how to fix this in CSS so that B

how to overcome “name” attribute error in xhtml Strict

我的梦境 提交于 2019-12-24 13:27:33
问题 in my form i have this code <form action="mail.php" class="contactForm" name="cform" method="post"> Problem is when i validate it tells me "name" is not allowed on xhtml strict. is there a way i can use soem thing else for this. thanks 回答1: You should be using id as a unique identifier instead of name . Is there a particular reason that you need to set the name though? You can just remove the name declaration unless there's a reason for it. 回答2: Use ID. <form action="mail.php" class=

XHTML strict span inside label is semantic

南笙酒味 提交于 2019-12-23 07:46:03
问题 I'm using XHTML strict. I want to put a SPAN tag inside LABEL tag. Is it correct way? <label>Username <span>*</span></label><input type="text" .... /> 回答1: label is an inline element therefore can contain other inline elements like span . So this is correct XHTML. 来源: https://stackoverflow.com/questions/3657629/xhtml-strict-span-inside-label-is-semantic

XHTML strict span inside label is semantic

此生再无相见时 提交于 2019-12-23 07:44:59
问题 I'm using XHTML strict. I want to put a SPAN tag inside LABEL tag. Is it correct way? <label>Username <span>*</span></label><input type="text" .... /> 回答1: label is an inline element therefore can contain other inline elements like span . So this is correct XHTML. 来源: https://stackoverflow.com/questions/3657629/xhtml-strict-span-inside-label-is-semantic

How can I view Arabic/Persian numbers in a HTML page with strict doctype?

房东的猫 提交于 2019-12-18 07:34:47
问题 I have an HTML page that is right-to-left. When I don't use any doctype, my numbers are in Arabic/Persian, but when I use strict mode they turn to English. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Final//EN"> Before adding doctype: After adding doctype: also I added these meta tags to my page: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Language" content="fa" /> So how can I view Arabic numbers in a page with strict doctype (in IE because

Canvas validation XHTML

家住魔仙堡 提交于 2019-12-12 03:23:41
问题 I am trying to validate my hxtml file but there is a problem with canvas element. w3c errors <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <canvas id="canvas" width="500" height="250" style="background-color:#303030;" > </canvas> Does anyone have any idea how to overcome it? 回答1: As was said in the comments, using the doctype for HTML5 ( <!DOCTYPE html> ) is the sane choice. However, it might be you're stuck with XHTML 1 for

HTML 4 Iframe with HTML5 content

扶醉桌前 提交于 2019-12-11 11:34:42
问题 So i have another question. I made a page with a xhtml1 doctype . <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> And i put on that page a video element, and a form element thats using a placeholder. It would make sense to me that the video and placeholder wouldnt load/be recognized because i dont use a HTML5 doctype. However, the opposite is true, its loaded as html5. To add to that, i created an iframe in the xhtml1 page. I was

Why won't this XHTML form validate?

二次信任 提交于 2019-12-11 01:05:44
问题 Any ideas why this won't validate here: http://validator.w3.org/#validate_by_input It seems the form input tags are wrong but reading through the XHTML spec they should validate fine. Any ideas? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> </head> <body> <div class="Header"> <table class="HeaderTable"> <tr> <td> <div class="Heading">Test <span class="Standard