xhtml

standard Xhtml- div vs li.

Hi All, I need ur suggestion in the following scenario. Lets say I have an UI something like Col1 Col2 A D B E C F Now to get this right now in my HTML I am using ..like <div class="col1"> <div>A</div> <div>B</div> .......... </div> <div class="col2"> <div>D</div> <div>E</div> .......... </div> But here I am ...

Why single textarea mess all following xhtml?

I encounter a problem in my web program. I got a textarea in my form, sometimes there is nothing in textarea, so genshi template engine just output it as <textarea xxxx /> and here comes the problem, all following tags are in the textarea. Why all browser can't handle single textarea correctly? If I write it as <textarea xxxx></tex...

What does a browser consider as a page?

Hello, a) What does a browser consider as a page? Assume monitor has a resolution of 800*600 and we expand browser to take the whole monitor surface area A1. If we resize a browser to an area A1 ( A1 < A) such that it still captures the whole html document ( thus we don’t have to scroll ), then browser considers A1 to be the whole p...

Compare/contrast HTML, XHTML, XML, and HTML5

Ok, so I'm not quite sure the difference between these languages. Could someone clarify? I know that XML has user-defined tag and html is pre-defined, but thats basically the extent of my knowledge. I know that HTML5 is supposed to replace HTML, but wasn't XML supposed to do that as well? Basically, which languages here are a substit...

Incorrect layout being rendered when accessing a page the first time - Page is displayed with a lot of blank spaces

We have a simple ColdFusion page that is outputting basic HTML to the browser. The output consists of a table and inside the table there is a row which has a div section. Sometimes, when I access the page for the first time, the page is displayed with a lot of blank lines. However, when I access the page the second time the page is alway...

Why does ASP.Net add a "border" attribute to asp:Image

So I have an asp.net image tag: <asp:Image runat="server" ImageUrl="~/Images/img.jpg" width="350px" height="250px" AlternateText="My Image" /> but it's outputting this: <img src="Images/img.jpg" height="250" width="350" border="0" /> ...the XHTML validator reckons that the "border" element shouldn't be there...but it's ASP.Net that...

JavaScript error while trying to hide table rows

Hello everyone. I am trying to display rows depending upon users choice. Suppose (s)he wants only 3 rows, then the fourth and fifth row will hide. Please find below the part of html and javascript. HTML <table> <tr id="sRow1"> <td>1a</td> <td>1b</td> </tr> <tr id="sRow2"> <td>2a</td> <td>2b</td> </tr> <tr id="...

Why doesn't HTML have a "slogan" tag?

It seems really obvious to me that there should be a "slogan" tag in addition to the "title" tag. Many, perhaps most, websites use their business name with a slogan in their title. Unfortunately, it means that every time I bookmark a site I seem to have to edit the properties to remove the stupid slogan from the bookmark name. The behav...

Problem with CSS and DIV height [UPDATED]

Hello, I'm building webpage layout which includes 5px wide DIV which i use as spacer, if i define my steyle like that div#main_spc{ display: block; width: 5px; background: url(../Images/contsep.gif) repeat-y top center; float: left; position: relative; } and put height inline <div id="main_spc" style="height: 356p...

Semantic markup to achieve last row editable effect?

I'm looking to have a table that can be added to by just typing into the last row and clicking on the "Add" button at the end of the row. All other rows in the table can be deleted by clicking on a button in their rightmost column. My problem is that forms can't wrap only one row and validate as XHTML. If I make the form wrap the entire...

Table doesn't display borders

The following code should display table with borders around cells, but it doesn’t. Any idea why? <head> <meta http-equiv=“content-type” content=“text/html; charset=ISO-8859-1” /> <style type=“text/css”> td, th {border: 1px solid black;} </style> <title>Testing Tony’s Travels</title> </head> <body> <table> <tr> <th>City...

Table row height behavior in IE vs Firefox/Chrome/Safari

Consider the following simple html page markup: <!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> <title></title> <style type="text/css"> body, html { height: 100%; ...

Capturing HTML Text Input Key press after key has been applied?

A total newbie question, so please bear with me here ;) When a key press occurs in a HTML text input control, there are two events that seem useful in managing it (onKeyPress and onChanged). onKeyPress fires after the key has been pressed, but before the operation has been applied to the control's text. The later is only fired when focu...

What's my best option for XHTML standards compliant fixed spacing?

I'm trying to space out the items in this menu with the exact same number of pixels. In the 90s, most web developers I knew either used spaces or a spacer gif. These work, but they feel like bad hacks to me. There must be a better way to do this in 2009! I'm more of a back-end coder, so I've been out of the loop for a while. I'd apprecia...

anchors and regular links - styling

In a webpage I'm building I use anchors for easy navigating. The styling of these anchors in IE6 gives me some troubles. <div class="text"> <h3><a class="anchor" name="custom_name">Title</a></h3> Lorem ipsum <a href="otherpage.aspx">dolor</a> sit amet. </div> With this CSS: .text { color: #000; } .text a[href] { co...

about html textarea's post value

text file in window, each line end with \r\n, in unix, each line end with \n. Does textarea's post value follow this rule? ...

mobile: html5 vs xhtml

I am building a mobile app (hybrid mobile web app but with a native shell) with most users on the iphone (some on the blackberry) and am wondering if it should be written in html5 or xhtml? Any insight would be great. ...

Starting point of a html document and a viewport ( display area )

hi Absolute positioning is relative to a containing block that provides a positioning context; which by default is the document a) So if absolute positioning is relative to document, then could we imagine the starting point of a document as a two dimensional coordinate system with its origin in the top left corner of a viewport (assu...

mailto: problem

I'm trying to set up the following mailto: link: <a href='mailto:[email protected]?subject=Testing&body=http://www.google.com?foo=1&amp;bar=2'&gt;Send mail</a> However the second argument (bar) is cut off because it is seen as an argument of the mailto link and not the link I'm putting in the body. I tried &amp; but it does the same th...

Anchor tag around table is not clickable in IE 6, 7 & 8

The problem: when surrounding a table with an anchor tag, the table and everything within is not clickable in IE 6, 7 & 8. How do I solve this issue assuming I can't replace the table with divs? Sample code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <ht...