Skip navigation
Currently Being Moderated

DW CS4 not closing input tags properly when no doctype declared

Apr 20, 2012 3:16 AM

Tags: #tags #field #input #closing


I often write code in PHP that is going to be included, because of this, I dont use the HTML, BODY, DOCTYPE tags on the include file (usually a form) that I'm working on.

If I add input fields, they are closed with a '>' instead of a '/>'

Is there any way to correct this behavior?


  • Currently Being Moderated
    Apr 20, 2012 3:54 AM   in reply to djreiss

    When you create a new page in DW select XHTML 1.0 Transitional...then get rid of the excess code you don't want before typing in your include code.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points