xhtml

Can the rel= attribute contain any string characters and still validate?

I'm wondering because I want to store something other than pre-defined keywords that are typically assigned to rel... and I just wanted to know if this is valid XHTML Strict or not. ...

What is target="_new"? validator giving error..

What is target="_new"? Validator is raising an error.. How do you do this with jquery because Validator is raising an error. On the same page, I have target="_new" and target="_blank". target="_new" is in that form code which i received from email newsletter company. I'm using this for target="_blank" $(function() { $('a[href^...

cross-browser text (blur) shadow..

How to get cross-browser text (blur) shadow? including IE6, 7, 8. is there any css or js solution? I want to get text-shadow with semantic and valid markup. ...

How to use "if clause" in xhtml?

Hi , i am a newbie C# Programmer. I have a problem in xhtml. I want to check that if browser is IE6 or not. For example if ie6 then div id="div1" style="display:block;" else div id="div1" style="display:none;"> How can i control my browser and use if clause in xhtml? ...

Which alt text is best for screen readers for example "smiling kid"?

Which would be good write ALT text for a photo of kid which is smiling and sitting in garden? This alt="Photo of smiling kid sitting in the garden" or this alt="Photo of smiling kid" or this alt="Smiling kid sitting in the garden" or this alt="Smiling kid" my purpose is to ask this question, I want to know should we include ...

How to build, sort and print a tree of a sort?

This is more of an algorithmic dilemma than a language-specific problem, but since I'm currently using Ruby I'll tag this as such. I've already spent over 20 hours on this and I would've never believed it if someone told me writing a LaTeX parser was a walk in the park in comparison. I have a loop to read hierarchies (that are prefixed ...

Which elements of an XHTML/HTML5 page should be explicitly included in the document outline?

The HTML5 spec definition of the "section" element is: The section element represents a generic document or application section. A section, in this context, is a thematic grouping of content, typically with a heading....Note: The section element is not a generic container element. When an element is needed for styling purposes or a...

Input field name starts with a number

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? ...

How to disable scrolling the document body?

I have a HTML which has lot of content and a vertical scrollbar appears as soon as the HTML is loaded. Now from this HTML a full screen IFRAME is loaded. The problem is when the IFRAME is loaded, the parent scrollbar still persists, I want to disable the scrollbar when the Iframe is loaded. I tried: document.body.scroll = "no", it did...

link rel not working without http:// protocol

Hi, i'm trying to implement various semantic links on the website I'm working on. For that, i try to put <link rel="start" href="index.html" /> In my head section. Although the data is present in the web page, Opera does not seems to see it to show the navigation bar that should however be present. Here is my full head section. <...

Create calendardateselect from javascript

Not sure why I can't figure this out. When a user makes a selection, a javascript method is called, at which point I want to add a calendardateselect to an existing div tag from the javascript. According to the docs, it seems like this should work: var a = new CalendarDateSelect( document.getElementById("date_area"), {embedded:true, y...

Stop Div from being affected by other css rules

I want a div on my page to have the id of header but because the nature of the site requires 3rd party code to be loaded into the page I want the header div to be unaffected by any css other than the css defined explicitly for it via #header { } Possible? I'd rather not use iframes to seperate it or anything like that. ...

jquery slideDown menu

Hi, I have a link which once hovered over a box below slides down, once hover is removed it slides back up. I have it working almost to how I want, although in IE8 (Havent tested in other IE yet) the text in the box which slides down is not centerd. In firefox, when it slides down the corners are not smooth, but they are in IE. Live tes...

"’" showing in page in place of this " ' "...

’ showing in page in place of this ' what is the problem? how to solve This is already defined in <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Update: Browser is already set on Unicode And content type is already set too ...

XHTML Validation issue trying to render '&' character inside an ASP.Net control

Ok, the description is kind of funky, but here's my problem: <asp:ListItem Value="0">All Leads <i>(include Archive & Trash)</i></asp:ListItem> <asp:ListItem Value="0">All Leads <i>(include Archive &amp; Trash)</i></asp:ListItem> <asp:ListItem Value="0" Text="All Leads <i>(include Archive & Trash)</i>" /> <asp:ListItem Value="0" Text="Al...

jQuery and XHTML layout problems in ie7

Hi there, I am back again with more layout problems on my up and coming website. I am able to achieve the proper animation, positioning and results with my layout / splash on every modern browser (excluding ie7 or older). I have an image in the center of the page, that is text-align: center'd, and pushed to a vertical center by having ...

After completing a XHTML , CSS project , should we try to optimize our code?

After completing a XHTML , CSS project , and Even client is happy, should I try to optimize my HTML, CSS code if there is any scope? If yes then how to more improve and optimize code and what things can/should be optimized? Should i optimize to get lowest file size or i should optimize code for better readability? ...

How to remove all empty tags in X/HTML code in once?

for example : I want to remove all highlighted tags ...

HTML Language question

Note my code below. I am trying to figure out why my data is not changing to Spanish. I understand it to be one line of code and that is all within the HTML attribute lang=”es”. Any help would be greatly appreciated. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3...

How to make <dl> layout horizontally?

I'm trying to develop a layout for my website in which elements of a definition list will be laid out horizontally, kind of like this: term 1 term 2 term 3 definition 1 definition 2 definition 3 Anyone know a way to make a definition list look like this using valid CSS? Or if I can't do it...