xhtml

Google's doodle and HTML5, could it be done with XHTML 1?

I've read on websites and heard on podcasts that the Google doodle is was bestowed upon the masses through the miracle of HTML5. I looking at the code and validated the source of the Google homepage page via W3C and received 35 errors. While HTML5 is certainly fine and dandy it seems the real work is being done by CSS3 and JavaScript. ...

Adding data to XHTML tags.

My website is XHTML 1.1, and I had added 'rel' attributes to the <li> and <div> tags on my page, to store data for a jQuery script on the page. When validating my page, I get the error: "there is no attribute 'rel'". So, what is the best way to store arbitrary data in HTML tags? I am working on a comments page for my website. When a ...

Disable link to the current page in navigation

I have a pretty standard navigation for a website. The main navigation is a ul, with several nested ul's. I'm basically just wanting to dynamically disable a link when the user is already on that page. So if I'm on the home page, the home page link needs to be disabled. If I'm on the contact page, the contact page link needs to be disab...

Shouldn't we use "Pixel" for anything in CSS, if we are making a site for mobile devices?

Shouldn't we use "Pixel" for anything in CSS if we are making a site for mobile devices? px for layout and font. Should we only use em or % for everything on mobile sites? and if i'm using <img> then should i defined height and width for <img> in HTML code? or it's good to not to define. or i should define size in css for <img> also in...

How do I make a text input non editable

So i have a text input <input type="text" value="3" class="field left"> Here is my css for it background:url("images/number-bg.png") no-repeat scroll 0 0 transparent; border:0 none; color:#FFFFFF; height:17px; margin:0 13px 0 0; text-align:center; width:17px; Here is the page Is there a setting or a trick to this, I was thinking ...

Constraining the Size of an Element to a Multiple of a Given Size

If I have a div that expands to its contents, how can I ensure that its height is always a multiple of a given value, say, 50 pixels? Is there any way to do this with CSS, or would I need to resort to JavaScript? ...

HTML tag to have image dynamically adjust to fill screen?

I am learning how to make a slideshow presentation with S5, and it allows the insertion of images via standard HTML tags. For slideshows, it is often useful to have a background image that fills the screen during the presentation. Is there a way, such as a HTML tag, that specifically adjusts an image to fill the screen? Thanks. ...

How do I rewrite this HTML to validate to XHTML 1.0 Strict?

How do I rewrite this HTML to validate to XHTML 1.0 Strict? <div> <a href="link.html"> <p>Some text</p> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> </a> </div> My intent is to have the entire div serve as a clickable link. The content within simply describes th...

Does Google index HTML content supplied by the Object tag

This might be a weird question, but I've been unable to find an answer. Assuming I were to use an Object tag to embed an HTML snippet from an outside source (different server), how does Googles spider view that data? Does it pull in the data source like a browser would or does it only view the alternate content found between the Object t...

XHTML multi-column text flow div

Hello! How can I have multi-column text flow in div for XHTML please? (if possible) I'm looking for a cross-browser specification. Thank you. ...

What are the advantages of creating web pages with XML instead of HTML?

Hi Everyone, From time to time, I see web pages whose content is solely written in XML (not HTML or XHTML). These pages usually have some style sheets (either XSLT or CSS) attached to them which makes them look like any other ordinary web page. My question is, what are the advantages of such an approach (if any), and why would anyone...

Rails 3 UJS and XHTML

I have a simple question about how Rails 3 works with XHTML doctypes. Since Rails 3 uses UJS for its ajax calls (and even normal calls such as delete calls) and does so by use of HTML5 data attributes, then, since XHTML doesn't support data attributes, will the markup be automatically invalid? ...

mouse over popup menu

Creating a website using simple html(not html5) and css but got stock in mouseover effect. Need to show some text with background image when user mouseover a link. Following is an example.. NORMAL: OVER: I don't think it is possible to create the effect with simple CSS. My question is what is the most effective way to create the ove...

How to get cross browser compatibility in Print on page from all browsers?

How do you get cross browser compatibility in Print? any tips for print css file to make print on paper identical from all browser. Edit I'm already using Eric meyer CSS but still facing inconsistencies in different browser when we take print from site. Is there any CSS declarations which we can use always and put at a top in print cs...

How to access text from neighboring table cell?

I have a set of search results presented in a table. Each row has a radio box. Once the user has selected a row I would like to access the description text from the neighboring cell. Using jQuery or straight javascript, what is the best way to do this? <tr class="odd"> <td class="chosenCode"><input type="radio" value="123" name="chos...

Why is that the xsl stylesheet is applied by the browser only when the extension is xml

For Eg. <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="mathml.xsl"?> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head>...</head> <body> <h1>Example</h1> .... <math xmlns="http://www.w3.org/1998/Math/MathML"&gt; <mi>x</mi><mo>+</mo><mn>3</mn> </math> </body> </html> If the above file is nam...

Use html or xhtml?

Are most of the websites using HTML or XHTML? Isn't XHTML "better" than HTML? I know the declarations are different. XHTML: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> ...

How to list style attribute in list variable with C#?

I have one HTML file which contains the following: .CLASS1 { font-family: Arial, Helvetica, sans-serif; font-size: 18px; } .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 18px; } .style4 { font-size: 12px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; } .style6 {font-family: Arial, Helvetica, sans-...

Is there any HTML 5 + CSS 3 framework specfically to make mobile website for supported devices?

Is there any HTML 5 + CSS 3 framework specfically to make mobile website for supported devices? ...

jQuery .show, .fadeIn not visible with IE7

Below is the jQuery code I am attempting to use. It works well in Firefox, Opera, Chrome, Safari, but not IE7. I was at first suspicious that this was because of the :hidden selector not being supported in IE7, so I tried to simply .show() and .fadeIn() the element without conditions (you can see this from the commented out area). if (...