xhtml

Semantic HTML Practice

家住魔仙堡 提交于 2019-12-06 03:34:12
问题 I read about semantic HTML online... Semantic HTML means using HTML tags for their implied meaning, rather than just using (meaningless) div and span tags for absolutely everything. If you use <h1> instead of <div class="header"> , and <h2> instead of , et cetera, Google and other search engines will interpret your headers as being important titles in your page. This way, when people search on the words in your headers and sub-headers, your page will be considered more relevant (and rank

How many div tags are too much?

心已入冬 提交于 2019-12-06 03:25:33
How many div tags in one HTML document would one need before it affects performance? In this case, the tags are not nested and the content within each is minimal (background color/image). This question is a follow-up on a previous question; Drawing lines with clickable points using JavaScript Here I settled on doing this using HTML and CSS. The <div> tags will have a width of at least 4 pixels, and a total width of 400-800 pixels, thereby 100-200 div tags. On top of that, there will be five or six of these graphs/timelines stacked on top of each other. The number of div tags is then up in 500

Google multilingual sitemap issue

痞子三分冷 提交于 2019-12-06 02:33:59
问题 I have a sitemap issue. I am working on a multilingual website and I'm trying to use the Google method to indicate alternate language pages, as it is described here : https://support.google.com/webmasters/answer/2620865?hl=en. You can see my sitemap here : http://preprod.fabric-a.fr/princesse-nomade/sitemap.xml It seems that this sitemap is broken, and I don't understand why, it respects the example given by google.. Curiously, when I replace xmlns:xhtml="http://www.w3.org/1999/xhtml" by

How to use float without flipping floated item and changing in source order? Is this possible?

孤街浪徒 提交于 2019-12-06 02:33:02
问题 See this example to understand http://jsbin.com/ocewu alt text http://easycaptures.com/fs/uploaded/212/8042227539.png This is code of example <style type="text/css" media="screen"> body { background-color: #000; font: 16px Helvetica, Arial; color: #fff; } div {width:300px;height:42px;border:2px solid red} a{border:2px solid blue;padding:10px} div a {float:right} #div2 a {float:left} </style> </head> <body> I need positioning in right like this <p>div a {float:right}</p> <div > <a>A</a> <a>B<

XHTML still harmful?

百般思念 提交于 2019-12-06 01:23:33
I'm starting a project where the client has mandated the use of XHTML 1.0 Strict. Now I'm wondering whether the problems described in Sending XHTML as text/html Considered Harmful are still current and whether I should try to convince the client that this (very strongly stated) requirement is counterproductive. Does Internet explorer handle application/xhtml+xml correctly by now? IE9 handles application/xhtml+xml , including SVG inside it, one of the main reasons to want to use this media type. (Otherwise, there's relatively little point in using it to date, as you get a bunch of scripting

What's the easiest way of converting an xhtml string to PDF using Flying Saucer?

梦想的初衷 提交于 2019-12-06 01:04:19
问题 I've been using Flying Saucer for a while now with awesome results. I can set a document via uri like so ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(xhtmlUri); Which is nice, as it will resolve all relative css resources etc relative to the given URI. However, I'm now generating the xhtml, and want to render it directly to a PDF (without saving a file). The appropriate methods in ITextRenderer seem to be: private Document loadDocument(final String uri) { return

XHTML 1.0 Transitional vs XHTML 1.0 Strict?

て烟熏妆下的殇ゞ 提交于 2019-12-06 00:53:00
问题 In terms of SEO, for client point of view, should I use XHTML 1.0 Transitional or XHTML 1.0 Strict? Why some people still use Transitional? Will we lose something if We use Transitional over Strict? 回答1: XHTML Strict forces you to use semantic markup, where as Transitional is a bit more flexible and still allows you to use legacy presentational elements like <font> and <center> . People still use Transitional to maintain support older markup, but it doesn't make any difference to SEO. Strict

What is the difference between .html and .xhtml extension? XHTML is a markup language or it'a different extension also

不想你离开。 提交于 2019-12-06 00:01:55
问题 What is the difference between the .html and .xhtml file extensions? What is the benefit of using the .xhtml extension? Why we are not using the .xhtml extension, is it just because of IE? What about .xhtml extension with IE 8? Is .xhtml supported in other browsers besides IE? If yes, then what benefit we will get when all browsers support the .xhtml extension. Will we stop using .html ? Why do we use the XHTML doctype, but save those files using the .html extension? 回答1: If served over HTTP,

“PWC3999: Cannot create a session after the response has been committed” [duplicate]

蓝咒 提交于 2019-12-05 22:13:42
This question already has answers here : Adding <h:form> causes java.lang.IllegalStateException: Cannot create a session after the response has been committed (5 answers) Closed 3 years ago . I'm having this weird problem with one of the pages of my application. It's throwing the error I mention on the title: PWC3999: Cannot create a session after the response has been committed I've checked other posts regarding this subject, but I don't see anything that applies to this situation, because no new Servlet/Filter was added to the application and the error just started after some minor changes

Vertical alignment in IE7

不羁岁月 提交于 2019-12-05 21:00:56
I have used CSS to create a tableless layout. While this renders properly in IE8, FireFox and Chrome, it does not on IE7, which I expected. But I was wondering if there was any solution for vertical-align: middle; . This seems to be the core of my problem in IE7. #main { margin: 0 auto; height: 500px; display: table; position: relative; } #main ul { display: table-cell; vertical-align: middle; text-align:center; } #main ul li { display: inline-block; margin: 10px; border: 1px solid #d0dad2; height: 170px; } <div id = "main"> <ul> <li><img src="images/test.jpg" alt="staff" /></li> </ul> </div>