html4

What are the best practices for using html with xml based languages like svg?

From browsing on this site and elsewhere, I've learned that serving websites as xhtml at present is considered harmful. Delivering xhtml and serving it as application/xhtml+xml isn't supported by the majority of people browsing at present, delivering xhtml as text/html is at best a placebo for myself, and at worst a recipe for breaking ...

What's the key difference between HTML 4 and HTML 5?

What are the key differences between HTML4 and HTML5 draft? Please keep the answers related to changed syntax and added/removed html elements. ...

Does my page have to have the HTML5 doctype to access sessionStorage

Our dev shop continues to support IE6 etc. I'm wanting to use session storage to make an app-cache but wondering how much work it would be... Is it possible to use an HTML4 doc type in an HTML5-compatible browser and still access the sessionStorage, or do I have to browser sniff and return different pages (perhaps just with doctype a...

What is the best Emacs mode for HTML 4.01 strict editing?

I have been using nxml-mode to edit XHTML. However, it does not work very well for HTML4 documents whose tags don't have to close. Has anybody found a good Emacs mode for editing these files? Example document: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html lang="en-gb"> <head> ...

Localhost caching in Windows Vista/IIS 7

I'm trying to do some simple locally-hosted development using the Ext framework. The site is configured as a virtual directory under IIS 7, so that http://localhost/app points to the index file. The path works fine; the file loads. Here's my problem: despite the fact that I am not making any changes to the very sizable Ext library javas...

Divide page into two sections

I want to divide my page into two sections. It must be separated by a slider. In the left-pane, I want to display Form names and on the right-pane, I want to show the Form that was selected from the left-pane. Which controls to use? ...

Open links on other section of FrameSet

I am using following code to split my screen into two panes. <frameset cols="20%,80%"> <frame name="lefty" src="menusidebar.html"> </frameset> </frameset> The file "menusidebar.html" contains links. I want to open the links on the right pane when the user clicks on the link in the left-pane. How to do this? ...

How does HTML 5 differ from HTML 4?

I have seen HTML 5 coming up in near future. How does it differ from HTML 4, which has been 'in' for so many years in web development? thanks ...

How will the key features of HTML5 work, contrast to HTML4?

Please write code. How will HTML5 code differ from HTML4? ...

How to make Server controls in .NET 1.1 render in compliance with Xhtml

Hey guys I'm "re-skinning" a legacy .NET 1.1 site (i know, don't ask). Anyway, originally it was all horrible html4.0 markup, and the new design is xhtml. How do I change the way server controls render in .NET 1.1 amd Visual Studio 2003? For example, the asp:ImageButton control is rendering without the self closing tag, how do I chan...

Using valid HTML 4.01 Strict with Django

I've found a similar question here, but I'm looking for more general solutions. As it is now, when Django generates anykind of HTML for you (this mainly happens when generating forms), it uses self-closing tags by default i.e. <br /> instead of <br>. <br /> is valid XHTML and I think HTML5 also, but it's not valid HTML4. Is there any c...

Controls not aligning properly.

I am using following code to design my home page. The output (as shown below) is not appearing properly. You can see the banner going to far left and the navigation links have a huge gap in between. How to set this? Can it be done using only the DIV tag instead of TABLE? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ...

Going to IE8 with DOCTYPE HTML 4.01 Transitional any suggestions appreciated.

Hello, we use in all our pages in the 1st line of our HTML code the: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; We are moving on to the new IE8 and we would like to keep the DOCTYPE unchanged, is there any suggestions/warnings we better be aware of? I mean like: "Be caref...

HTML: Include, or exclude, optional closing tags?

Some HTML1 closing tags are optional, i.e.: </HTML> </HEAD> </BODY> </P> </DT> </DD> </LI> </OPTION> </THEAD> </TH> </TBODY> </TR> </TD> </TFOOT> </COLGROUP> Note: Not to be confused with closing tags that are forbidden to be included, i.e.: </IMG> </INPUT> </BR> </HR> </FRAME> </AREA> </BASE> </BASEFONT> </COL> </ISINDEX> </LINK> </...

Remove short tag in html 4 validation using aspx

hi all, I am new to HTML 4 validations, in that if I put HEAD runat="server" tag I am getting this error - Error Line 6, Column 82: character data is not allowed here …lesheet" type="text/css" media="all" /> In the head tag I have called css files. So if any one know about thin can help me,how to solve this error? Thanks in advanc...

Transforming XML into HTML (as opposed to xhtml)

i want to transform some xml into HTML that has the following format: <TR><TD> col1 <TD> col2 <TD> col3 </TR> Note: The output is HTML, complete with optional closing tags omitted. This is the problem, and the reason the question exists. A snippet of the XSL i'm using is: <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl=...

Are self-closing input tags valid in HTML 4?

According to http://www.w3.org/TR/html401/interact/forms.html#h-17.4, an input element should end with a single > and not a />. Though that most browsers can handle an input element that ends with />, is such an input element valid according to HTML syntax rules? In other words are elements like <input ... /> and <br /> valid in HTML 4? ...

What is the state of the art for embedding audio in html4?

I've been trying to find a definitive modern source for the state of the art in how to embed audio, and been finding lots of up to date info on flash video, and lots of really old and questionable articles on audio embedding (e.g. with references to IE 3.0). Also haven't been able to find anything here on stackoverflow, or on doctype. ...