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