- This topic is empty.
-
AuthorPosts
-
July 24, 2010 at 1:07 am #29717noahgelmanParticipant
Is it okay to use an <a> with no href? Kinda like using it as a span? Or is it a definite no-go? Well, I know you CAN if you wanted to, just wanted to know other peoples opinion on it.
July 24, 2010 at 4:46 am #80313jamygoldenMemberIt does validate, however, I don’t think it’s very semantic to use <a> tags all over the place.
I’ve never felt the need to use an <a> tag without the href.
July 24, 2010 at 6:50 am #80317Rob MacKayParticipantwell you shouldn’t really… you should use a span If you aren’t using it as some kind of link then it should be a styled span…
July 24, 2010 at 9:45 am #80324Rob MacKayParticipantOf course – to do internal anchors hahahah I forgot about the other end
Thing is your can link to IDs and don’t need the <a name="blar"> anymore, so it’s kinda out dated… Plus if you are just using it like span and not an anchor, you should just use a span
July 25, 2010 at 5:15 pm #80351visudexParticipant"TT_Mark" wrote:"Robskiwarrior" wrote:Plus if you are just using it like span and not an anchor, you should just use a spanSure, but there is nothing wrong with <a> tags without href, only if you use it in the right way though A span is a span, and anchor is an anchor etc..
I agree, <a> tags don’t need an href, imagine yourself using the <a> to launch some kind of javascript, and you don’t want to style something that is the same as <a> tag.
July 26, 2010 at 3:04 am #80372Rob MacKayParticipant"visudex" wrote:"TT_Mark" wrote:"Robskiwarrior" wrote:Plus if you are just using it like span and not an anchor, you should just use a spanSure, but there is nothing wrong with <a> tags without href, only if you use it in the right way though A span is a span, and anchor is an anchor etc..
I agree, <a> tags don’t need an href, imagine yourself using the <a> to launch some kind of javascript, and you don’t want to style something that is the same as <a> tag.
Yes but if you are using it to launch the functionality is still a click – which means it is still an anchor tag. If you are choosing what to wrap some text in and choose an A over a SPAN then that is incorrect. You need to stick to the usage of the tag at least a little
July 26, 2010 at 12:20 pm #80388noahgelmanParticipantWow, this got a lot more talkative then I previously thought it would.
Does anyone else have any minor questions like this as well?
July 26, 2010 at 5:00 pm #80414noahgelmanParticipantWhat are your opinions on tables? As to what range of use they’re for. Data tables obviously. But what about for forms? Or for very boxy layouts?
I personally only use them for data.
July 27, 2010 at 1:21 am #80460jamygoldenMemberTable layouts are good! … For Email newsletters
July 27, 2010 at 4:15 am #80465Rob MacKayParticipantTable layouts are spawned under the armpit of the dark one – although Jamy is right, they work wonders on emails – but then again so does in-line styling lol
The only other place I use tables is on tablature data of course and forms that are huge or within the WordPress admin back end when I am making a plugin or theme options.
For the record, forms should always be try and layed out with <fieldset><legend><label><input> tags.
July 27, 2010 at 3:59 pm #80492jamygoldenMemberI created a table-layout newsletter this year and I was doing email-client testing. Did you know that Outlook 2003 is way more advanced (with css) than 2007 or 2010? What kind of a company downgrades?! (I think they started using the word engine to display the emails or something)
Quote:For the record, forms should always be try and layed out with <fieldset><legend><label><input> tags.Legends make me happy.
If I’m having a bad day, I create a form with a legend and it’s all good again. -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.