Jump to content
Killersites Forums

Html 5


Graeme
 Share

Recommended Posts

I have used <br> without problems.

 

<br> is the correct way for HTML 4 and 5.

 

XHTML requires <br/> (the space is for older browsers, but I don't know what the exact definition of 'older' is)

 

HTML 5 does not need the closing tags that XHTML requires, however, using them will not give you any validation errors.

Link to comment
Share on other sites

I think you might be confused about that. Can you point to the spot in the article where it says it has been depreciated?

 

Maybe this part - it does read like that to me, too:

 

 

8.1.2.5 Restrictions on content models

For historical reasons, certain elements have extra restrictions beyond even the restrictions given by their content model.

 

A table element must not contain tr elements, even though these elements are technically allowed inside table elements according to the content models described in this specification. (If a tr element is put inside a table in the markup, it will in fact imply a tbody start tag before it.)

 

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...