Suppose we want to make an element (title, image in a container, a block in the sidebar, etc.) reference. This can be implemented by at least the following methods:
- Wrap the above elements in
<a>. This is probably not technically quite correct, because<a>not recommended to be used as a container. - Wrap
<a>only the contents of the container, not the container itself. I think this is more correct, but I am waiting for your arguments. - In general, do not add any links to HTML, but add the necessary redirects by clicking through
jQuery. Elegant or not, a moot point; Again, I expect you to say based on your experience.
Which of the above method is optimal?
PS Just please, do not reproach the phrase "more optimal" - "optimal" only one.