html

What are pros to use XHTML 1.0 strict with content="text/html; over HTML 4.01 strict?

I'm sure everyone here knows that we cannot serve the pages with the correct MIME type (application/xhtml+xml) for XHTML without breaking IE compatibility, and that any content served with text/html will be parsed as HTML by any browser out there. So if the content is not parsed as XML. I use a xhtml doctype only for one reason: it help...

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

How to make styling and functioning of form elements get not to break in all browsers?

How to make styling and functioning of form elements identical in all browsers? <form> </form> <fieldset> </fieldset> <legend> </legend> <button> </button> <label> </label> <input type="button" /> <input type="checkbox" /> <input type="file" /> <input type="hidden" /> <input type="image" /> <input type="password" /> <input type="r...

Odd DOM Problem with Firefox

Hello. I'm experiencing an odd problem when trying to navigate through a table's rows and cells in a while loop using javascript. I'm using Firefox 3.5.7 on Win7 with Firebug enabled. I have this markup: <table> <tbody> <tr id='firstRow'><td>a</td><td>b</td><td>c</td></tr> <tr><td>a</td><td>b</td><td>c</td></tr> ...

Is there an html command to bypass an html filter?

I am trying to add an html link to a website but the website strips out the html: When I view the source I get this: &lt;a href = &quot;http://www.soandso.com&amp;quot;&amp;gt;http://www.soandso.com/&amp;lt;/a&amp;gt; instead of what I actually want which is this: <a href = "www.soandso.com">www.soandso.com</a> Is there an html co...

What are cons to use % over em in terms of accessibility?

What are cons to use % over em in terms of accessibility? ...

How do I use PHP to display one html page or another?

Hi! I wanted to use PHP and the if statement, and I wanted to do if ($variable){ display html page1 } else { display html page2 } How do I do this? An please note, that I do not want to redirect the user to a different page. --EDIT-- I would have no problem doing that with one of them, but the other file, it would be too much of a h...

How do I insert an HTML page using PHP?

Hi! I wanted to know, is there any way to insert an HTML page into PHP without using the include function? I do not want to use an external html file, I want to write the html coding directly into the php coding. Thanks for your help! ...

On Page Button To Validate HTML

i validate my page using the w3 validation http://validator.w3.org/ while my site is in development i would like a way to validate pages easily. I find myself copy/pasting changing tabs and generically spending roughly 5seconds to validate one page. Is there javascript code i can stick in source and click a validate this link at the bott...

I can't make div to expand until the bottom of its parent div

I want the leftcolumn to expand until the bottom but at the same time to remain above of the footer (I tried height: 100% but no luck). Here is my markup: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html; c...

Delphi Suggestions For Parsing Google SERP Results

What's the best way to parse the google search results with Delphi (The API will not work, only allows 10 results)? (I would prefer free options.) ...

Strange input field indent in Safari

This code: <table cellpadding=0 cellspacing=0 border=0> <tr> <td bgcolor=red> <input type='text' /> </td> </tr> </table> Gives this output in Safari and all other browsers: The question is how to remove the indent that is highlighted with background color. Problem occurs in Safari only, CSS margin...

Is it necessary to put INPUT elements in a DIV element?

Why this give error in W3c html validation ? I'm using HTML 4.01 Strict doctype. <form method="get" action="/search" id="search"> <input type="text" value="search" maxlength="80" class="textbox" > </form> and this does not? <form method="get" action="/search" id="search"> <div> <input type="text" value="search" maxl...

description text in a text field?

i want to put some description text in light grey in a text field. then when a user clicks on it the text disappears and he can type whatever he wants. is there a jquery plugin for this? i dont know what to search for in google. ...

Some images only showing alt text in Firefox but load fine in Safari or Chrome yet other images on the same page load fine

I'm making a simple website for myself using wordpress and some hacking to try and teach myself a little about web coding for fun. I've set up my website and http://jonhocking.co.uk and I'm using a series of 4 squares on the front page to navigate around the site. Three of these link to categories and these images display perfectly fine....

What is the best accessible and W3C valid way to code a one simple search input box with image button?

What is the best accessible and W3C HTML 4.01 strict valid way to code a one simple search input box with image button(to do search)? like this accessible and W3C HTML 4.01 strict valid both. ...

Stripping MS Word Tags Using Html Agility Pack

Hi Everyone, I have a DB with some text fields pasted from MS Word, and I'm having trouble to strip just the , and tags, but obviously keeping their innerText. I've tried using the HAP but I'm not going in the right direction.. Public Function StripHtml(ByVal html As String, ByVal allowHarmlessTags As Boolean) As String Dim html...

no value from $_POST

No value is sent to $_POST['addEdit'] variable :(, pls help HTML code: <form name='frm' method='POST' action=''> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr class="heading"> <td style="width:5px;"><input type="checkbox" name='check_all' onClick='checkAll();' /></td> <td class="head">App Name</td> . . <?php //som...

jQuery how to replace src url

I have a page that I screen scraped, the scraped page used a relative path for their images and when I load my page, the url of my site is being inserted on the src attr. I need to find some way of replacing my url with the url of the remote site in order for the images and other items that reference it to show up properly on my page. ...

html padding does not work in Internet Explore when resizing the font

This is an internet explorer only bug. I'm currently using IE7. I'm having the same problem that appears on YouTube page. There is "Home" "Video" "Channels" under the search text field at the top of youtube.com page. The padding that exists between Home and Videos gets ignored when we increase or decrease the font. The page I'm deve...