w3c

Does every html page with doctype need internet connection to render page properly?

many doctype use a url link like this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; and this dtd file is on live url http://www.w3.org/TR/html4/strict.dtd ...

What are best practices to order elements in <head>?

can use anything in any order? does placing of <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> is important before <title> this is most used, is it best way? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html lang="en"> <head> <meta http-equiv...

Should i use transtional doctype over strict for CMS based sites where client will update site in future?

In any CMS based site after my work in future client or any client's staff (non-technical) will update website through WYSIWYG editor and it's surely possible they could use deprecated tag or any non-semantic and non validated code. so in this condition would it be better to use transtional doctype over strict for CMS based site? ...

Geolocation in Browser works in 1.6 (Gears) but not 2.0 (HTML5/W3C) - Tested in emulator and real devices.

I created this little Geolocation experiment site http://www.bctx.info/wx it works great on my Android 1.6 (Magic, I/O Phone) it prompts the user to share, returns lat, log and is snappy. 1.6 uses Gears for this. I tried it on an up to date Droid and a 2.0 emulator image and it detects the "navigator.geolocation" element (excellent!) and...

Should we use strict doctype if our code is valid with Transtional doctype?

What are cons to use transitional doctype with presentational or deprecated element, if our code is valid in W3C validation with transitional doctype? Will we have to rewrite/edit site's code again after few years for the site's in which we are using XHTML/HTML transtional doctype.? This is not semantic but using less character, and it...

Jaxen /text() not working

I have the html: <p> <a href="#">click here</a> Welcome </p> And I just want to retrieve the "Welcome" part using Xpath combined with the Jaxen lib the Xpath I am using is; //p/text() Now when I remove the /text() it retrieves; click here Welcome With the /text() added it retrieve null Is there any other way to retrieve everythi...

How do you validate password protected sites with w3c?

Like the title says, I have an online app that I am wanting to validate, but users need to log in first to access them. How do I go about validating this? Thanks! Joel ...

validating onselectstart with javascript in w3c

Hi folks, I'm really very new to javascript, and trying to validate a page to xhtml transitional. I use onselectstart="return false" So I understand that I am wanting to create a javascript function that will insert that as an id. I even found this http://www.webmasterworld.com/javascript/3054096.htm and he figured out how to do it....

Looking for XHTML / CSS WYSIWYG editor recommendations.

Hello. I'd like to know if there is a good XHTML / CSS editor available. The intent is to be able to create html pages that resemble a design in question. The editor should be WYSIWYG and output should be standards compliant (XHTML, CSS2) and the markup produced should be readable and lean. On Googling, I do get a list of many product...

How to stop Eclipse IDE from trying to download DTDs for validation?

I have a XHTML-file using the following doctype-definition: `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;` Eclipse is trying to validate the file by using the referenced dtd file, which results in this error: ParseException: Error validating the model: Se...

Is it necessary to add cellspacing="0" cellpadding="0" in <table>?

Eric meyer reset css is suggesting "tables still need 'cellspacing="0"' in the markup". Is it necessary? and what is the benefit of border-collapse: collapse; and border-spacing: 0;? and it's only suggesting to use cellspacing, while table has another property called cellpadding? /* tables still need 'cellspacing="0"' in the markup */...

Is use of <u>underline</u> deprecated and non validated?

Is use of underline deprecated and non validated? ...

CSS reset with presentational and deprecated tags

Why does Eric Meyer have not advisable, presentational, deprecated, and non-semantic tags in his css reset? (I.e. applet, iframe, big, s, small, strike.) html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, sm...

Attribute "lang" exists, but can not be used for this element.? W3C validation error.

I'm using this dtd <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"&gt; Error is for this attribute? <html lang="en"> Should i remove this from DTD? ...

Is it necessary to use lowercase for every Element and attribute , propertis in css and xhtml ?

4.2. Element and attribute names must be in lower case XHTML documents must use lower case for all HTML element and attribute names. This difference is necessary because XML is case-sensitive e.g. <li> and <LI> are different tags. Source : http://www.w3.org/TR/2002/REC-xhtml1-20020801/diffs.html#h-4.2 But is it also necesary for attri...

If If iframe is not good to use then is there any other standard complaint way to get same thing like iframe?

If iframe is not good to use then is there any other standard complaint way to get same thing like iframe? ...

Are there any pros to use HTML 4.01 strict over XHTML 1.0 strict (content="text/html)?

Are there any pros to use HTML 4.01 strict over XHTML 1.0 strict (content="text/html)? ...

What tag should be used to make Form layout if we can't use only pure semantic way?

i know it is pure semantic way <form action="" method=""> <fieldset> <legend>Contact Form</legend> <label for="name">Name</label> <input name="name" id="name" size="20" /> </fieldset> <form> But some time for some design purpose it's not sufficient to get needed style. so my qu...

Can we use any other TAG inside <ul> along with <li>?

Can we use any other TAG in <ul> along with <li>? like <ul> Some text here or <p>Some text here<p> etc <li>item 1</li> Some text here or <p>Some text here<p> etc <li>item 1</li> </ul> ...

CSS: url() - what's better?

What should I use in my CSS: /* Example #1: */ background-image: url(image.png); /* Example #2: */ background-image: url("image.png"); /* Example #3: */ background-image: url('image.png'); What says the W3C? What's really the "right solution" from the W3C? ...