El jue, 06-05-2004 a las 17:30, Andy Budd escribi�: > I think the article seems reasonable.
I do not but that's a matter of opinion of course :) > Some people would argue that what you should do is wrap the element in > a span, create a class and then style the class in the stylesheets. > This is reasonable if the class has some meaning (e.g. author). However > most people would just create a class called italic. By doing this, you > are no longer really separating presentation from structure, so why not > use <i>? Well it's pretty tricky picking between two wrongs but i'd say wrong named classes are much less serious than wrongfully marked elements. > I think it's very good practice to code semantically. However I often > find myself creating a class solely to position an element (float it > left lest say). I usually try to give the element some semantic meaning > (like col1) however it's always tempting to simply go for the easy > option of floatLeft. Are you saying that we are all guilty of laziness once or twice in a while and that we don't follow good practices all of the time? Boy, i'm glad i'm not the only one ;) Still, i don't think that's quite the same than writing a post about using an element in a way that's not the way it should be used. > Whereas I can see a good reason to use semantic HTML, is there really > much point in worrying if your ID's/classes have semantic meaning. > Becasue they are user defined, there probably is never going to be a > time when that information will be used by another machine. > Personally, i do it because i was told me girls dig semantic coding. You mean they don't? Seriously, the issue of relevant class/ID naming is interesting and important but Matthew proposes a whole different (and IMHO wrong) thing -- Manuel trabaja para Simplel�gica, construcci�n web (+34) 985 22 12 65 http://simplelogica.net ***************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *****************************************************
