Using CSS over using HTML's physical tags is beneficial in many ways. First, it gives you more variety and say in your page, while HTML is very good for the logical tree layout, CSS can cover all physical tags that even some browsers have issues with rendering. Second, CSS allows you to link reference to a separate file, this allows you to make changes across every page in your website. Third, because you don't need to repeat the CSS information across all HTML pages, your overall website costs less bytes, which is a very good payoff because this means the site will render faster.
The difference between classes and ids is that ids are only for tags that will be unique to that page and classes are for tags that you will be using multiple times on a page. While, their importance may not seem to stand out right now, when you get to Javascript, it is important because a very commonly used function in javascript is .getElementById . If you mix up the classes and ids, the javascript won't do what you want it to do.
Thursday, January 24, 2008
Sunday, January 20, 2008
week2
Working on webpages is sort like a love-hate relationship. On one hand, it makes you feel awesome when your page is well received and looks really nice. On the other hand accommodating your page to deal with what piece of garbage the IE browser renderer is, is what makes most people run away from webpage design. Webpage making may seem easy at first, but it's fickle with it's own rules and irrational reasons for why it moves images and spacing.
Having done some of this before, if everyone thinks IE acting fickle over HTML & CSS is bad. Wait until they get to Javascript... or should I say Jscript. Jscript is basically a black box attempt by Microsoft to emulate Javascript. Unfortunately, seeing how well the IE browser renders HTML and CSS, you can guess what a mess Jscript is. In addition, I've been hearing recently that because Javascript is planning on adding classes and some nice aspects of Python, Microsoft's Jscript team has been caught unawares so they've been spreading nasty rumors about Javascript's new version. It's all one big flame fest in the forums now between the Javascript team and the Jscript team. This should be interesting...
Moreover, one thing that should be interesting to show to the class, how badly IE messes up css implementation by just having it run through the acidtest. It's ridiculous how off they are compared to most browsers out there. I'm almost tempted to write javascript code to redirect anyone coming to my site using IE to the firefox download page.
Having done some of this before, if everyone thinks IE acting fickle over HTML & CSS is bad. Wait until they get to Javascript... or should I say Jscript. Jscript is basically a black box attempt by Microsoft to emulate Javascript. Unfortunately, seeing how well the IE browser renders HTML and CSS, you can guess what a mess Jscript is. In addition, I've been hearing recently that because Javascript is planning on adding classes and some nice aspects of Python, Microsoft's Jscript team has been caught unawares so they've been spreading nasty rumors about Javascript's new version. It's all one big flame fest in the forums now between the Javascript team and the Jscript team. This should be interesting...
Moreover, one thing that should be interesting to show to the class, how badly IE messes up css implementation by just having it run through the acidtest. It's ridiculous how off they are compared to most browsers out there. I'm almost tempted to write javascript code to redirect anyone coming to my site using IE to the firefox download page.
Thursday, January 17, 2008
Happy to Begin COGS121
Sorry, I'm a bit late in getting into this class. I didn't actually realize that the topic for this class this quarter was mostly client-side web programming, which I love with a passion.
It's just one of those accidental things where I entered computer science convinced that I would like computer graphics because I loved art so much before. Unfortunately, it wasn't so. In fact, I realized that I loathed programming graphics and I was devastated because I had worked so hard to push towards a career that I had put on a pedestal only to realize that every moment I was programming graphics, I was miserable.
Then, one quarter I took client-side web programming, and then I realized that this was it. This programming sub-category was my forte and not only that, I found it to be so much fun to play around with. So, seeing that COGS121 was doing a client-side web topic, I was ecstatic and I signed up right away after checking out the class website.
YAY!
I know I'm almost 2 weeks late, but I'll definitely make up for it.
It's just one of those accidental things where I entered computer science convinced that I would like computer graphics because I loved art so much before. Unfortunately, it wasn't so. In fact, I realized that I loathed programming graphics and I was devastated because I had worked so hard to push towards a career that I had put on a pedestal only to realize that every moment I was programming graphics, I was miserable.
Then, one quarter I took client-side web programming, and then I realized that this was it. This programming sub-category was my forte and not only that, I found it to be so much fun to play around with. So, seeing that COGS121 was doing a client-side web topic, I was ecstatic and I signed up right away after checking out the class website.
YAY!
I know I'm almost 2 weeks late, but I'll definitely make up for it.
Subscribe to:
Posts (Atom)