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

4th Feb 2017, 6:53 PM
Melissa Harris
Melissa Harris - avatar
5 Réponses
+ 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).
4th Feb 2017, 11:38 PM
Zilvinas Steckevicius
Zilvinas Steckevicius - avatar
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..
4th Feb 2017, 7:41 PM
Nico Loos
Nico Loos - avatar
0
what i was aiming for was 'rearrange words order of, idea same gets across' even if sloppily
4th Feb 2017, 8:30 PM
Melissa Harris
Melissa Harris - avatar
0
it was a loose comparison
5th Feb 2017, 12:19 AM
Melissa Harris
Melissa Harris - avatar
0
Maybe html as words and css as syntax
5th Feb 2017, 3:52 AM
Antoinette R
Antoinette R - avatar