No slash at the end of the tab for HTML5 Doctype

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
MaxA
Posts: 18
Joined: Tue Aug 28, 2012 5:53 pm

No slash at the end of the tab for HTML5 Doctype

Post by MaxA »

Hi

Example:

1. <!DOCTYPE HTML>
Ctrl+Enter = <br>

2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Ctrl+Enter = <br />

The BR tag for HTML5 Doctype should have slash also or may be I can find this somewhere in options? My tries to find didn't bring me some result.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: No slash at the end of the tab for HTML5 Doctype

Post by Aivars »

http://dev.w3.org/html5/spec-author-vie ... -start-tag - #6. As you can see, the slash on self-closing tags is optional in HTML5, in fact it was only left in for backwards compatibility with the old XHTML standard.
Blumentals Software Programmer
Post Reply