xhtml

I want to load multiple images very fast on a website, what's the best method?

痴心易碎 提交于 2019-12-03 10:05:13
问题 UPDATE: This question is outdated, please disregard So.. my idea is to load a full manga/comics at once, with a progress bar included, and make sort of a stream, like: My page loads the basic (HTML+CSS+JS) (of course) As done, I start loading the imgs(the URLs are stored on JS var) from my server, one a time (or some faster way) so I can make a sort of progress bar. ALTERNATIVE: Is there a way to load a compresses file with all imgs and uncompress at the browser? ALTERNATIVE: I was also

Is XHTML compliance pointless?

人盡茶涼 提交于 2019-12-03 09:52:57
I'm building a site right now, so far I've painfully forced everything to be compliant and it looks pretty much the same across browsers. However, I'm starting to implement some third party/free javascripts which do things like add attributes (eg. order=2). I could work around this but it's a pain, and I'm starting to lose my principals of making sure everything is valid. Really, is there any point to working around something like this? I got the HTMLValidator plugin for firefox, and looking at most major sites (including this one, google, etc.), they aren't valid XHTML or HTML. I have yet to

HTML version choice [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 09:51:42
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. When developing a new web based application which version of html should you aim for? EDIT: cool I was just attempting to get a feel from others I tend to use XHTML 1.0 Strict in my own work and Transitional when others are involved in the content creation.

Display HTML in an Actionscript 3 project

为君一笑 提交于 2019-12-03 09:47:51
问题 Folks, I am pulling all my Flash (pure AS3 project, not Flash CS3) content from a Drupal back-end for SEO purposes. This works great, except the HTML rendering built into the TextField object leaves a lot to be desired. Could anyone recommend any libraries that would allow me to display HTML elements? At this stage, commercial or open-source libraries are welcome. Thanks, Marcus 回答1: you might also want to try: http://code.google.com/p/htmlwrapper/ I haven't used it but it looks like it does

how to remove the bold from a headline?

纵然是瞬间 提交于 2019-12-03 09:16:53
I have a headline: <h1>THIS IS A HEADLINE</h1> How do i make the phrase "THIS IS..." not to be bold and the rest without a change? couldn't find any relevent tag in text-decoration. The heading looks bold because of its large size , if you have applied bold or want to change behaviour, you can do: h1 { font-weight:normal; } More: http://www.w3.org/TR/css3-fonts/#font-weight-prop Ya Zhuang Try font-weight:normal; h1 { font-weight: normal; } <h1><span style="font-weight:bold;">THIS IS</span> A HEADLINE</h1> But be sure that h1 is marked with font-weight:normal; You can also set the style with a

How to style <dl> as shown in image?

守給你的承諾、 提交于 2019-12-03 09:09: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? 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 second item</dd> <dt>Third Item</dt> <dd>Lorem ipsum dolor sit amet... lots more text here...</dd> <dt>Fourth

Input field name starts with a number

爱⌒轻易说出口 提交于 2019-12-03 08:42:58
问题 I have an input field whose name is an MD5 string e.g.: <input type="hidden" name="7815696ecbf1c96e6894b779456d330e" value="1"> Now I understand that having a number as the first letter in an input field name is generally bad practice, but are there any side-effects to this such as a certain browser won't send it in the POST request? 回答1: An ID attribute would have had to begin with a letter as per the HTML 4.01 W3C specification, however since the NAME attribute of input elements is of CDATA

how to clear the last <li> tag within a <ul>

筅森魡賤 提交于 2019-12-03 08:19:37
问题 I know this is pretty basic, but it is giving me hangups. I have a basic list: <ul> <li><a href="#">Insert Link Here</a></li> <li><a href="#">Insert Link Here</a></li> <li><a href="#">Insert Link Here</a></li> </ul> What do I need to do to make sure the last <li> item gets cleared? I've tried adding style="clear:both" to the end with no avail. Also I've added a 'div' after the last <li> tag before the closing </ul> tag, that works, but I know it doesn't validate. 回答1: If you want to have the

Why do some major websites use invalid HTML?

北慕城南 提交于 2019-12-03 08:17:19
问题 I noticed that many websites, even Google and some banking sites, have poorly-written HTML with no quotes around the values of attributes, or using characters such as ampersands not escaped correctly in links. In other words, many use markup that would not validate. I am curious about their reasons. HTML has simple rules and it is just mind-boggling that they don't seem to follow those rules. Or do they use programs that just spit out the code? 回答1: Most people have gotten the answer

Why TR not taking style?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 07:27:56
问题 CSS table tr {border-bottom:1px solid #008999} HTML <table width="100%" cellspacing="0" cellpadding="0"> <thead> <tr> <th scope="col">one</th> <th scope="col">two</th> <th scope="col">three</th> </tr> </thead> <tbody> <tr> <th scope="row">Hello</th> <td> </td> <td> </td> </tr> </tbody> </table> 回答1: Add: table { border-collapse: collapse; } Otherwise tr creates no single block. Simple example: table { border: 5px solid #900; background: #fff; } tr { border: 5px solid #090; } td { background: