The current HTML5 draft says it is incorrect.
http://www.w3.org/TR/2012/WD-html5-20120329/the-button-element.html#the-button-element says that a <button>
must contain only Phrasing content. Phrasing content is defined as including <span>
but not <div>
.
More Related Contents:
- Set width on div
- How to Make columns in row [closed]
- What to do Regular expression pattern doesn’t match anywhere in string?
- Is it wrong to change a block element to inline with CSS if it contains another block element?
- HTML5 best practices; section/header/aside/article elements [closed]
- CSS selector by inline style attribute
- What character represents a new line in a text area
- Full Width Backgrounds on Outlook ’07/’10/’13
- Horizontal list items
- HTML/CSS – Best practice for preserving white space on certain elements?
- Stretch background image css?
- Bootstrap – align button to the bottom of card
- Is using without enclosing tags dangerous? [closed]
- Add hyperlink to textblock WPF
- How is the margin-top percentage calculated?
- How to align flexbox columns left and right?
- Center form submit buttons HTML / CSS
- How remove border around image in css?
- What happens when localStorage is full?
- Can’t show some websites in iframe tag
- Streaming a video from Google Drive using HTML5 video tag
- What client-side web scripting languages are there other than JavaScript and VBScript?
- Center align container and left align child elements
- Flexbox on IE11: image stretched for no reason?
- Strip all HTML tags except links
- How to see an HTML page on Github as a normal rendered HTML page to see preview in browser, without downloading?
- At the end of the day, why choose XHTML over HTML? [closed]
- appends link to end of current url
- How can I embed SVG into HTML in an email, so that it’s visible in most/all email browsers?
- Question mark characters display within text. Why is this?