xhtml

@font-face not working in Firefox?

爷,独闯天下 提交于 2019-12-04 16:13:14
This is code generated from FontSquirrel, and working great in every other browser (including IE), but not the mighty Firefox! What am I doing wrong? (ps- I am using FF3.5) If you can't view my example, here is the source: <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex, nofollow" /> <title>Fonts Firefox test</title> <style type="text/css"> /***********

How to style <dl> as shown in image?

梦想的初衷 提交于 2019-12-04 15:59:16
问题 I have <dl> , and can't style it to look like this: Is it possible to style a definition list like that? Or maybe, better idea would be table? 回答1: D4V360 was almost there. This variant will handle longer entries which fall over onto subsequent lines (like the example in the linked image): <style type="text/css"> dt { width: 200px; float: left; clear: left; } dd { margin-left: 200px; } </style> <dl> <dt>First Item</dt> <dd>This is the first item</dd> <dt>Second Item</dt> <dd>This is the

What are the pros for using extension-less URLs?

别说谁变了你拦得住时间么 提交于 2019-12-04 15:48:27
问题 What are the pros for using extension-less URLs? For example, why should I change... http://yoursite.com/mypage.html http://yoursite.com/mypage.php http://yoursite.com/mypage.aspx to... http://yoursite.com/mypage And is it possible to have extension-less URLs for every page? Update: Are extension-less URLs better for site security? 回答1: The reason for extension-less URLs is that it is technology independent. If you want to change how your content is rendered you do not have to change the URL.

How to markup scientific names in XHTML?

不羁的心 提交于 2019-12-04 13:14:42
I would like to know the best way to markup scientific names in XHTML. This answer says I should use the <i> element, which I'm not too in favour of, unless of course, it is the right element to use. I could use <span class="scientific"> , but seeing as one of the first uses of HTML was to markup scientific documents, I'd imagine there'd be a better semantic hook for this sort of thing. Also, is there any element to markup the common name of a scientific name? Note: It looks like Wikipedia, or at lease this article is using <i> for scientific nams. Edit : Would the <dfn> tag be appropiate? dfn

How to hide any text from sighted user and search engine but not from screen reader?

↘锁芯ラ 提交于 2019-12-04 13:05:15
What is the best tested way to hide any text from sighted user but not from popular screen readers? and without affecting SEO. for example if i adding any hidden text only for screen-reader users then that text should not be crawl by search engine when search engine will crawl that page. The jQuery UI CSS framework does this by positioning elements far off-screen, e.g. .ui-helper-hidden-accessible { position: absolute; left: -99999999px; } I'm using the system Drupal 7 class which seem to be working pretty good (and seems to be the best way so far to visually hide content, but make it

Alternative to target=“_blank” when using XHTML strict and no javascript!

不羁的心 提交于 2019-12-04 12:14:31
问题 I need to use XHTML strict I need to ensure my site works with no javascript. I need to open a new help window from my own application. Of course I wanted to use target="_blank" when no javascript detected but this is not XHTML strict. Are there any alternatives? 回答1: You have to use javascript in this case. If you don't want to use javascript, and still have valid markup, don't use XHTML Strict as your doctype. document.getElementById("mylink").target = "_blank"; Or you can attach a click

How do I get a richfaces modal window to display without an onclick event?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 12:00:14
I'm trying to implement a modal window like this to display an error message to the user. I have a page with a form for users to enter their information, then click Submit to add it to a database. If the database returns an error, I want the modal window to pop up with the error message. The only problem is I can't get the modal window to pop up unless there's some kind of onclick event. I tried using the following code: <rich:componentControl for="popup" attachTo="submitButton" rendered="#{backingBean.isError}" operation="show" event="onclick"/> The idea is that the backing bean would render

PHP: building (X)HTML output with DOM - pros and cons?

允我心安 提交于 2019-12-04 11:45:18
I just started out with a new site and I decided to use DOMImplementation for building the complete site. What do you think about this, is it fast enough? I expect it to be quite a bit slower than the basic print method. I prefer the DOM one because it allows greater flexibility when building the final output, not to mention the more error-free XHTML. Anyway, I would like to have some speed comparision at least. Could you recommend me any (perhaps completely obvious) ideas to keep the PHP code clean (i.e. keep the HTML on a minimum level)? bobince Is it fast enough? That totally depends on

is there any css validator with CSS3 and vendor specific extensions support?

孤者浪人 提交于 2019-12-04 11:16:58
is there any css validator with CSS3 and vendor specific extensions support? I only want to see problem other than CSS 3 and vendor specific extensions related errors. And is there any better xhtml css validator than W3C's? GlenCrawford You can select "CSS Level 3" in the More options>Profile section of the W3C CSS Validator . Although this won't help with the vendor-specific errors. It looks like there is no intention to support these in the W3C validator . The W3C Validator unfortunately goes crazy over CSS3. This one may work for you CSS3 Validator 来源: https://stackoverflow.com/questions

Is there a property named “rowgroup” like “colgroup” in XHTML?

这一生的挚爱 提交于 2019-12-04 10:51:10
The following w3c documents mentions rowgroup http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6 http://www.w3.org/TR/html401/struct/tables.html#rowgroups <!ENTITY % Scope "(row|col|rowgroup|colgroup)"> Is there such an attribute or property? Gumbo No, there is no such element. If you want to group rows, you can put the particular tr elements in the same class. The “rowgroup” you are referring to is a row group that is naturally formed by an element like thead , tbody and tfoot . And Scope is used to define the value set in the same-named attribute scope that is used to refer to the