xhtml

Last Updated JavadScripting in XHTML

旧巷老猫 提交于 2019-12-11 14:53:39
问题 So I have this XHTML document where I have this script embedded in between the <head> tags: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!--Created January 12, 2016--> <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <!--Date updated, courtesy of --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> function makeArray() { for (i = 0; i < makeArray

Xhtml Invalid Characters?

六月ゝ 毕业季﹏ 提交于 2019-12-11 13:39:01
问题 I have made custom xhtml valdidator in .NET(validating through dtd + some extra rules) and I have noticed a discrepancy between my validation and w3c validation. In my validator I get the following error when there is colon in the id (let's say : id="mustang:horse") (Error) The 'id' attribute has an invalid value according to its data type. But I do not get any errors on w3c for this pattern. I tried to find a list of invalid characters for an attribute in xml/xhtml but couldn't find it?

Extracting data from website with XSLT

落爺英雄遲暮 提交于 2019-12-11 12:56:16
问题 I'm trying to learn XSLT and I came across a problem. The thing I would like to do is to extract some data from a website, transform it with xslt templates and finally show it in my own xhtml page. Lets say i have a xml file (this will be my xhtml site): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?xml-stylesheet type="text/xsl" href="myXSLTFile.xsl"?> <!--here I want to have markup produced by xslt file--> The

Why does the browser go crazy when I write things like <div/>? [closed]

早过忘川 提交于 2019-12-11 12:31:58
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago . I mean, aren't <div/> and <div></div> supposed to be exactly the same thing? By browser I mean the latest Firefox and Internet Explorer. And by go crazy I mean ignore styles of tags that contain the <div/> . 回答1:

IE cannot find the W3C XHTML DTD (Error 2146697204)

北战南征 提交于 2019-12-11 12:28:50
问题 I have a template that starts every page like this: <?xml version="1.0" encoding="utf-8"?> <!-- blah blah--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns="http://www.w3.org/1999/xhtml"> ... </html> that produces the error: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. The server did not understand

100% Width div's and form elements + padding?

别等时光非礼了梦想. 提交于 2019-12-11 12:26:59
问题 What do I have to do to prevent the following from stretching more than 100%? It obviously stretches to 100% then adds on the padding... Thanks! <!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" xml:lang="en" lang="en"> <head> <style type="text/css" media="screen"> #box { width: 100%; padding: 20px; border: 1px solid #000; } #box input { width: 100%; padding: 5px; } </style> </head> <body>

Does sifr 3 works in all desktop's A-Grade browsers?

扶醉桌前 提交于 2019-12-11 12:10:20
问题 Does sifr 3 works in all A-Grade browser if css, javascript is enabled and flash player is installed. A-Grade browser http://easycaptures.com/fs/uploaded/448/6837085829.png and which Flash player version is needed to see sifr 3 text in all browsers. 回答1: In short, yes. See below links for verification. From their documentation: Supported Browsers How to Use (States to use Flash 8 in the build settings, which means 8 is the min version. Flash penetration stats here) 来源: https://stackoverflow

What is preferred accessible and semantically correct method to code this type of data design?

被刻印的时光 ゝ 提交于 2019-12-11 11:48:26
问题 What is preferred accessible and semantically correct method to code this type of data design? Table UL, LI DIV,SPAN For icons should i use for each place or i should is icon from CSS sprites? If we use css sprite here then how to code, and what will happen when images will be disabled ? Every link will open in new window and I have to indicate about file size also for both sighted and blind users? So what is the best method to make this design and what is best method to show icon and to

Creating valid XHTML when using jQuery .append()

≯℡__Kan透↙ 提交于 2019-12-11 11:17:35
问题 In the examples here: http://api.jquery.com/append/ they show straight HTML being used as an argument: $('.inner').append('<p>Test</p>'); But the validator at W3 will object to this like so Line 96, column 76: document type does not allow element "p" here …ata).append("<p class='pag How should I do this to get valid XHTML? EDIT - Here is an example of what is written by PHP: $('#citations_18401-01').html(data).append("<p class='paginated_link'><b>Result Pages:</b> <b class='paginated_link'>1<

navigation menu issues with css (background is not appearing behind the whole div)

白昼怎懂夜的黑 提交于 2019-12-11 10:11:43
问题 I am writing a css code for a webpage, i have a navigation menu on the top with the code: <div class="nav-menu"> <ul> <li><a href="#">Services</a></li> <li><a href="#">About us</a></li> <li><a href="#">Tell a friend</a></li> <li><a href="#">Mission</a></li> <li><a href="#">Contact us</a></li> </ul> </div> The css for nav-menu include: .nav-menu { width: 900px; margin-left: auto; margin-right: auto; background: url(bgcolor.jpg) repeat-x; } .nav-menu li { float: left; } .nav-menu ul { list