0
html v css
would i be wrong in comparing html to vocabulary and css to grammar? (loose comparison) if so, i will better understand how to learn how the two interact better
5 Answers
+ 1
html is for content and its structure and css is for its design
you are probably comparing these 2 because of the html past, when it used its own styling. Now html does not define the style itself, only the structure and the actual data. Data presentation part is delegated to css. So when you take a web page, the html part tells the browser what to show (text, tables, pictures, links, etc) and how it should be structured (paragraphs, position on page, etc) and the css part (which can be embedded inside html) gives instructions on how it will be presented (font, color, allignment, background image, etc).
0
i dont think that its such a good comparison: a language would not work at all without grammar, it would be almost impossible to communicate, however a html website can also (in theory) exist without css and tell the user everything it wants to say. At least thats what i think about it..
0
what i was aiming for was 'rearrange words order of, idea same gets across'
even if sloppily
0
it was a loose comparison
0
Maybe html as words and css as syntax