xhtml

There shouldn’t be any space between these two block elements

Hi My page has a three column layout, with left and right columns being positioned absolutely, while center column uses relative positioning. All three columns should be removed from the top of the page by a distance of 184px, but for some reason the distance between the top of the page and the center column is greater than 184px. I re...

same layout across multiple xhtml files

Is it possible to reference one xhtml file (say a menu) from multiple xhtml files? Sort of like how external css is used to avoid multiple instances of the same code. I want the layout to reside in one place in case I need to make changes later on. ...

asp.net mvc and valid xhtml?

For some reason an html helper is outputting this html which doesnt validate. the validator tells me There is no attribute "Length" <%= Html.CheckBox("Medicamentos", Model.Medicamentos) %> is outputting <input type="checkbox" value="true" name="Medicamentos" id="Medicamentos" checked="checked" length="4"> ...

Do you add additional parameters to XHTML tags to make Javascript selectors more readable?

Subj. For example... <a href="#" act="check_all" with="category_checkbox">Check all</a> <p> <input type="checkbox" name="category[1]" tag="category_checkbox" />&nbsp;Category 1 <input type="checkbox" name="category[2]" tag="category_checkbox" />&nbsp;Category 2 </p> PS: What advantages and disadvantages of this method? Please ex...

Which approach will create less cross browser problems? see example image.

Is thee any benefit to wrap Main content and Context div in a content div? Column can be increased. like 1. Main content 2. left sidebar 3. right sidebar. My main question is is there any benefit to wrap all in another div? ...

What is the purpose of <meta name="MSSmartTagsPreventParsing" content="TRUE">?

What it does? is there any pros to add this in for all browser? ...

How to show a message only if cookies are disabled in browser?

How to show a message only if cookies are disabled in browser? like http://stackoverflow.com show if JavaScript is disabled. ...

<noscript> processing in XML documents

Is there any difference in <noscript> block processing for pages served with MIME-type text/html versus those served with MIME-type application/xhtml+xml? As far as I noticed <noscript> block for text/html pages is not processed at all if JavaScript is disabled in browser. And what happens for application/xhtml+xml pages? I suspect that...

PHP: Filter specific html tags out of a given text

I googled a lot, for those kind of problems have been asked a lot in the past. But I didn't find anything to match my needs. I have a html formatted text from a form. Just like this: Hey, I am just some kind of <strong>formatted</strong> text! Now, I want to strip all html tags, that I don't allow. PHP's built-in strip_tags() Method ...

Can we make onclick effect in css like we have :hover?

I'm making a Accordin for a site when i will click on + icon then another div will show. i'm using jquery for this. but is this possible in css to open a div on click on another element ...

How to give css style on any X/HTML element if javascript is disabled?

i want to do it from external css file. i have a div#abc in main css but i want to set display none for this div only if javascript is disabled ...

jQuery/Javascript auto tab index lock/select?

I have a simple display project and want to cut out the mouse from the equation, the page only has one field (a search field) and I want the browser to be locked into to the field remove the need for a mouse while keeping it user friend for those who don't know how to maneuver without a mouse. Can it be done with jQuery/Javascript? I do...

Shouldn't we use <noscript> tag?

I found some good cons here. The noscript tag only detects whether the browser has JavaScript enabled or not. If JavaScript is disabled in the Firewall rather than in the browser then the JavaScript will not run and the content of the noscript tag will not be displayed. Many JavaScripts are dependent on a specific feature or features...

How to make indication of mandatory fields and form's validation accessible for screen reader users?

When error message will come on validation if use have done something wrong then that error should be read by screen reader? Any Screen reader compatible, accessible, unobtrusive jquery form validation plugin? and how user will know which form field is mandatory? my question is not about to make form with fieldset, legend, and label? ...

What are pros to use extension-less url?

What are pros to use extension-less url? in any terms. like http://yoursite.com/mypage.html http://yoursite.com/mypage.php http://yoursite.com/mypage.aspx to http://yoursite.com/mypage and is it possible to have extension-less url for every page? Update: Is extension less url better for site security? ...

What is the best method to code contact info in x/html ?

What is the best method to code contact info in x/html other than Microformats? Is the use of <p> and <br/> is ok? or do we have any other good element? <p><strong>London</strong> <br/> 607,5th Floor, Oxford Towers, <br/> Airport Road, Kodihalli <br/> London 560 008 <br/> Phone: 91-80- 4115 1705-706 <br/> Fax: 91-80- 41151707 <br/> Ema...

Why is XHTML syntax so widely used in web pages?

First of all let's emphasize that syntax rules don't work alone, but they need the correct Content-type header to be fully interpreted by the clients. Currently web pages cannot be served with the correct XHTML header because Internet Explorer doesn't understand that. The first advantage usually mentioned is that XHTML requires pages to...

Why are there two competing implementations for the future of web markup - XHTML 2 and HTML 5?

Why are there two competing implementations for the future of web markup - XHTML 2 and HTML 5, particularly given that HTML 5 appears to have an XML-compliant counterpart XHTML5? ...

HTML: Why doesn't Firefox use wrap="off" when set by JavaScript?

I'm using this: $('document').ready(function(){ $('textarea').attr('wrap', 'off'); }); (JQuery) (Firefox 3.5) I'm checking with WebDeveloper that the wrap attribute indeed is set to off in the page when I'm loading it up, but the text still wraps. If I hard-code the invalid HTML of wrap="off" into the <textarea> in my HTML, it wo...

Form layout using CSS

I'm aware that there are already a bunch of questions about form layout using CSS versus Tables. On the whole, I think CSS is the way to go, but all the CSS solutions I've seen have the drawback of "hard coding" the width of the labels and/or input fields. The result is that one or two custom rules needs to be added for each form, assum...