Показать сообщение отдельно
  #3 (permalink)  
Старый 20.04.2013, 19:49
Отправить личное сообщение для Octane Посмотреть профиль Найти все сообщения от Octane  
Регистрация: 10.07.2008
Сообщений: 3,873

Сообщение от danik.js
Во-первых лучше <a> засунуть внутрь <div>
Смотря для чего верстка
http://www.w3.org/TR/html-markup/a.html#a
Сообщение от HTML: The Markup Language (an HTML language reference)
Changes in HTML5

Although previous versions of HTML restricted the a element to only containing phrasing content (essentially, what was in previous versions referred to as “inline” content), the a element is now transparent; that is, an instance of the a element is now allowed to also contain flow content (essentially, what was in previous versions referred to as “block” content)—if the parent element of that instance of the a element is an element that is allowed to contain flow content.

The following example is valid: A hyperlink that contains a paragraph.
<a href="javascript:void(0);"
  onmouseover="return anno('Note: This paragraph is informative only.')
  onmouseout="return anno_bye();">
<p>The following is introductory information…</p>
</a>
Ответить с цитированием