Format vs. Style
-
At the company I work for we have a web development standard that says all page formatting shall be handled by the HTML of the page and all styling shall be handled by a CSS file. Our standards fail to define what is formatting and what is styling. I assumed styling to be things like color, font face, font size, background images, etc. You know, the "pretty" stuff. I consider formatting to be organization of the data (lists, tables, paragraphs, etc). Recently one of my projects was handed back to me with notes saying the HTML contained styling elements. More specifically, the HTML line break element
is a styling element and not allowed in HTML. I don't agree with this, especially since every web app we have has line breaks in the HTML code, so I can cite precedence. My boss won't listen to my objections so I need some personal vindication. What does everyone think, is the line break a styling element, or a formatting element? "How come you can't taste your tongue?" - Jon Arbuckle -
At the company I work for we have a web development standard that says all page formatting shall be handled by the HTML of the page and all styling shall be handled by a CSS file. Our standards fail to define what is formatting and what is styling. I assumed styling to be things like color, font face, font size, background images, etc. You know, the "pretty" stuff. I consider formatting to be organization of the data (lists, tables, paragraphs, etc). Recently one of my projects was handed back to me with notes saying the HTML contained styling elements. More specifically, the HTML line break element
is a styling element and not allowed in HTML. I don't agree with this, especially since every web app we have has line breaks in the HTML code, so I can cite precedence. My boss won't listen to my objections so I need some personal vindication. What does everyone think, is the line break a styling element, or a formatting element? "How come you can't taste your tongue?" - Jon ArbuckleIf it's used to insert a linebreak in text somewhere, then i say it's perfectly appropriate. If you're using, say, in lieu of a vertical margin somewhere, then yeah, that sucks.
Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
-
At the company I work for we have a web development standard that says all page formatting shall be handled by the HTML of the page and all styling shall be handled by a CSS file. Our standards fail to define what is formatting and what is styling. I assumed styling to be things like color, font face, font size, background images, etc. You know, the "pretty" stuff. I consider formatting to be organization of the data (lists, tables, paragraphs, etc). Recently one of my projects was handed back to me with notes saying the HTML contained styling elements. More specifically, the HTML line break element
is a styling element and not allowed in HTML. I don't agree with this, especially since every web app we have has line breaks in the HTML code, so I can cite precedence. My boss won't listen to my objections so I need some personal vindication. What does everyone think, is the line break a styling element, or a formatting element? "How come you can't taste your tongue?" - Jon ArbuckleHow do you replace <br /> using CSS anyway? If your boss has an answer, I would love to hear that. I guess you will end up replacing <br /> with <p> or <div> -- they are also HTML elements. I think that taking so much time on whether <br /> is appropriate in HTML is utterly silly.
-
How do you replace <br /> using CSS anyway? If your boss has an answer, I would love to hear that. I guess you will end up replacing <br /> with <p> or <div> -- they are also HTML elements. I think that taking so much time on whether <br /> is appropriate in HTML is utterly silly.
Basically what he was looking for was to wrap everything in separate div elements and relatively position them. I don't see the point. I understand wrapping related content (like a menu or a panel) in a div, but not in this case. What he was complaining about was we had a label like "Notes", then a break and a text area for the notes to be entered, then a break, then the save button. He says each item should be wrapped in a div so they can be all be left aligned together. Poppycock, I say.
"How come you can't taste your tongue?" - Jon Arbuckle