xhtml

Are Custom Attributes OK in XHTML

丶灬走出姿态 提交于 2019-12-18 03:56:12
问题 I understand that according to the HTML specification, it's invalid to add custom attributes to elements. Is this also invalid with XHTML? I thought XHTML was part of the XML family, and as such was extensible. Being extensible, isn't it ok to use custom attributes? Dave 回答1: custom attributes won't be considered valid by the standard W3C validators. You can define your own document type definition (DTD) though. See http://www.alistapart.com/articles/customdtd/ for more information about that

Add bullet styling to dd element

筅森魡賤 提交于 2019-12-18 03:54:59
问题 I am using dl , dt and dd tags in one of my projects. I want to show a bullet before dd . How can I make my dd s into a bullet list using CSS? 回答1: Easiest way is to change the properties on your <dd> dd { display: list-item; list-style-type: disc; } Works in every browser. See this article: http://www.quirksmode.org/css/display.html 回答2: Use a background-image. Or try: dd { display: list-item; list-style-type: disc; } No idea if it will work though. 回答3: tested it in firefox and just adding

multiple form tags in page or one form tag?

微笑、不失礼 提交于 2019-12-18 02:14:10
问题 I have just started HTML5 and want to know in general if we should use one <form> tag per web page or multiple form tags. Maybe it depends on the situation, but here are two different scenarios: One Sign Up form A home page with multiple sub forms: Login, Join Mailing List, etc. Is it bad to have a form tag inside another or is it ok per standards? Thanks Edit Can you please explain in a simple way what the purpose of the form tag is? 回答1: I feel like you've already answered your questions.

How to prevent CSS caching on a web page?

馋奶兔 提交于 2019-12-17 23:17:37
问题 I am learning to develop xhtml, css web pages. Often I am doing changes in CSS but it do not reflect on page because of browser cacheing and if I manually clear cahceing it shows latest code effects. Is there a thing I can put in code to make browker not to cache stuff ? Any advice please 回答1: You can append a random query parameter to the stylesheet url (for example via javascript or server side code). It will not change the css file that is being loaded, but it will prevent caching, because

Scala and HTML parsing

谁都会走 提交于 2019-12-17 22:47:02
问题 How do you load an HTML DOM document into Scala? The XML singleton had errors when trying to load the xmlns tags. import java.net._ import java.io._ import scala.xml._ object NetParse { import java.net.{URLConnection, URL} import scala.xml._ def netParse(sUrl: String): Elem = { var url = new URL(sUrl) var connect = url.openConnection XML.load(connect.getInputStream) } } Finally I found a solution! - Requires scala 2.7.7 or higher to work (2.7.0 has a fatal bug): How-to-use-TagSoup-with-Scala

Child elements with margins within DIVs

一曲冷凌霜 提交于 2019-12-17 22:15:19
问题 I need two consecutive div elements (with backgrounds) to be touching seamlessly, one below the other. However, this layout breaks when I put a child p element into the bottom div . The margins of the p element force a blank gap between both div elements. This is strange behavior, as I am expecting the margin of the p to stay within the content and background area of the div . It renders the same way on Firefox, Chrome and IE 8. <div style="background: #ccccff">Top Div</div> <div style=

ISO-8859-1 vs UTF-8?

自作多情 提交于 2019-12-17 21:46:20
问题 What should be used and when ? or is it always better to use UTF-8 always? or ISO-8859-1 still has importance in specific conditions? Is Character-set related to geographic region? Edit: Is there any benefit to put this code @charset "utf-8"; or like this <link type="text/css; charset=utf-8" rel="stylesheet" href=".." /> at the top of CSS file? I found for this If DreamWeaver adds the tag when you add embedded style to the document, that is a bug in DreamWeaver. From the W3C FAQ: "For style

Loading alternative content via tabs and jQuery and JSP

若如初见. 提交于 2019-12-17 21:22:09
问题 I have a table of data for a policy type (options are Single, Couple, Family & Single Parent Family). I want to have a tabbed interface with each policy type occupying one tab. At the same time a table of data relating to relevant policy type is displayed beneath the associated tab. When a user clicks on another tab then a different table of data is displayed. I thought about exporting the data from the database then converting this to XML and therefore parsing this to HTML via XSLT and/or

IE 6 select controls(Combo Box) over menu

回眸只為那壹抹淺笑 提交于 2019-12-17 19:46:05
问题 In IE 6 select control(combo box) is displaying on top of menus. I checked some Javascript menus, mmmenu, but all are getting under select control. It's not fixable by assigning Z-Index. Is there any other solution. 回答1: This is a well-known bug with IE6 with trying to absolutely position divs on top of select controls. There are workarounds involving iframe shims, but there is no good answer. The iframe shim answer is to place an iframe underneath whatever div you're trying to place above a

Mobile HTML rendering numbers

橙三吉。 提交于 2019-12-17 19:28:19
问题 I have a mobile WEB Page showing a bank statement. Something like this: DATE | DESCRIPTION | AMOUNT --------------|--------------------------|--------------- Jan 2nd 2010 | Clothes | USD 1.839.000 Sep 23rd 2010 | Drinks | USD 2.837.000 I am using . as a thousand separator since that's our locale configuration for that. HTML is very simple. Something like this: <table> <tr> <td>DATE</td> <td>Clothes</td> <td>AMOUNT</td> </tr> <tr> <td>Jan 2nd 2010</td> <td>Clothes</td> <td>USD 1.839.000</td> <