Html Link Correct Placement?
Solution 1:
Yes. There isn't any "prohibited" elements for <a> in the spec (except for the standard <html>, <body>, <head>, <title>, <meta>...). <a> links, and everyone deserves to be linked.
Keep in mind tho that <a> is inline, so you will have to set display: block to use it like <div>
Solution 2:
Yes, you could do this. It looks a little odd, but it will work. Take note that in your second example the text will all map to the same link "#".
Post a Comment for "Html Link Correct Placement?"