xhtml

Easiest way or Best tools to convert word text to clean (X)HTML

This might have been asked in another way. I am not doing it on the fly however. Once in a while we get pieces of content in word files that have em dashes, bold, italic text and block quotes. Is there a good tool to convert this into a clean html code. Otherwise what other approaches people take. ...

CSS Trick to show border on table and cells when cells are not empty and show no border otherwise

Hi, Is there any way to make sure that a table and cells it contains have a border only when the cells are not empty? If all the cells of the table are empty, then no border should be visible. Kind regards, ...

Is it possible to make BEA Portal 9.2 close link and meta tags with '/>' so they are XHTML valid?

I'm trying to make a BEA Portal website XHTML compliant, because this has been written in the contract with the client, and I'm stuck on this problem: BEA renders <meta> and <link> tags without the closing slash, i.e. <link/> and <meta/> as it is required by XHTML. When I look at the documentation from BEA it seems that it should be pos...

Vertically align text within input field of fixed-height without display: table or padding?

The line-height property usually takes care of vertical alignment, but not with inputs. Is there a way to automatically center text without playing around with padding? ...

Changing the stylesheet of a nested page at runtime

First off, I apologize if this doesn't make sense. I'm new to XHTML, CSS and JavaScript. I gather that in XHTML, the correct way to have a nested page is as follows (instead of an iframe): <object name="nestedPage" data="http://abc.com/page.html" type="text/html" width="500" height="400" /> If I have a nested page like that - is it ...

I am passsing an xhtml tag ID in onPageLoad('TableID') function.

Javascripts are in script.js file which I have called in the xhtml file. But it is throwing error at line where I have calling onpageload function saying " object expected. However, if I have the scripts on same XHTML file, it is working fine. ...

XHTML - Is writing self closing tags for elements not traditionally empty bad practise?

I have noticed jQuery (or is it Firefox) will turn some of my <span class="presentational"></span> into <span class="presentational" /> Now my question is, is this okay to write my markup like this? Will any browsers choke on it? Personally, I think it looks cleaner to do <span class="presentational" /> if it's going to be empty. Than...

XHTML - What are the problems associated with serving pages with Content: application/xhtml+xml

Hi Stackers I started some of my new web pages (xhtml 1.1) to do a regex of the request header 'Accept' and sending it the right XHTML headers if accepted XML (Firefox does, So does safari). IE (or any other browser that doesn't accept it) will just get the plain text/html headers. Will Google bot (or any other search bot) have any p...

Regular Expression to Extract HTML Body Content

I've been playing around with RegExBuddy for over an hour trying to figure out what I thought would be a trivial RegEx. I am looking for a RegEx statement that will let me extract the HTML content from just between the body tags from a XHTML document. The XHTML that I need to parse will be very simple files, I do not have to worry about...

Combining CSS properties

I am trying to combine some of my CSS and it is kind of an easy questions but I am kind of having some trouble, i have this code: h2.post-title, h2.post-title a{ display:block; background-color:#000; padding:3px; color:#ffffff; text-decoration:none; text-transform:uppercase; font:lighter 130% Georgia, Arial; ...

What tag should I use instead of deprecated tag font in html (cannot use CSS)

Hi, this question can create a misunderstanding: I know I have to use CSS to validate successfully my document as XHTML 1.0 Transitional. The fact is that I have to embed in my webpage a picture composed by zeros and ones created with text image, and the problem is that the code uses deprecated tag font and looks like this <!-- IMAGE BE...

DocType xhtml1-transitional.dtd ignores table cell height

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <link href="Stylesheet.css" rel="stylesheet" type="text/css" /> </head> <body> <table style="height: 100%...

Get selected text and selected nodes on a page?

When selecting a block of text (possibly spanning across many DOM nodes), is it possible to extract the selected text and nodes using Javascript? Imagine this HTML code: <h1>Hello World</h1><p>Hi <b>there!</b></p> If the user initiated a mouseDown event starting at "World..." and then a mouseUp even right after "there!", I'm hoping i...

Valid CSS, XHTML logo generator

I once knew a website where the user could generate the little W3C valid CSS tags which looked much nicer than the too large W3C official ones. It was also possible to fill the icons with whatever content and color for other stuff. I've lost the bookmark and wasn't able to google it, can you post it and maybe other such resources? EDIT...

How to make PDF file downloadable in HTML link?

Hi, I am giving link of a pdf file on my web page for download, like below Download Brochure The problem is when user clicks on this link then If the user have installed Adobe Acrobat, then it opens the file in the same browser window in Adobe Reader. If the Adobe Acrobat is not installed then it pop-up to the user for Downloading t...

Internet Explorer submits the wrong button

I have an HTML form with two buttons as follows: <input type="submit" name="confirm" value="Yes, Delete" /> <button name="confirm" type="button" onclick="history.back()" value="No, Go Back" >No, Go Back</button> Now, when I click on either in Firefox, the behavior is as expected. If I click the submit button, then "Yes, Delete" g...

Div collapse after float css

I have a div called NAV and inside of NAV I have an UL with 5 li which I float to the left, the li's that is but when I do that the NAV collapses. I know this because I put a border around NAV to see if it collapses and it does. Here is the example. as you can see in the first image, the links in the NAV div are floated left and th...

When writing a web backend for a system, is it important the code can still work without Javascript?

Is it alright to expect that the user using the back end will have Javascript enabled? I guess the answer I'll get is 'it depends on your target users'. I am developing a system for fun that will hopefully be used by other people. I would like to hear from other people developing back end systems, and what did they decide to do and why?...

Silverlight, xhtml and 100% height

I have an aspx page with 1 table containing 2 rows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <style> html, body { height: 100%; } </style> ...

Prevent browsers from inserting name and password

Duplicate of Disable browser save password functionality Is there a way to tell the browser not to insert pre-Saved credential data into forms on websites? For example I might have an application where I have to login first. I saved the credentials for this login. When I now want to create a new user account in the control panel, the ...