Friday, March 22, 2013

Even More CSS

In html.net's article, it is shown how similar CSS is to HTML. I made the connection between them looking similar because, I believe it was Alex?, told us in class that CSS was made for HTML. So them looking very similar in coding only makes sense. The example they give us is this:

HTML:

<body bgcolor="#FF0000">

CSS:
body {background-color: #FF0000;}

Both of those do the same exact thing. As you can see, both use the terms body and are very similar on how they write "background color." They also have their differences being that HTML uses carrots (< >) while CSS uses curly brackets ({ }), HTML uses = while CSS uses :, and CSS doesn't use any "s on the hex code.

The most important part to me I found in w3.org's article was controlling white space. The article states its importance for "when you want a lot of white space before a particular heading or paragraph, or when you need precise control for the general spacings."  I myself love the use of white space in a website and it doesn't always need to be white. It just makes the entire site easier on the eyes.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.