Welcome! Log In Create A New Profile

Advanced

CSS: Lesson 1: Topic C

Posted by antiother-77681541 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar CSS: Lesson 1: Topic C
July 09, 2012 12:51PM
it is helful to comment a list of all the colours at the top of the page, but i prefer doing this in the html right under the <html> tag. personal preference i suppose.
comments are helpful for certain rules that ensure compatibility among browsers and which browser they're for.
they might also be helpful for debugging, but there shouldn't be any debugging going since it's easier(for me at least) to just write the rules out again instead of commenting them out the whole time.
avatar Re: CSS: Lesson 1: Topic C
July 09, 2012 01:21PM
[wrong topic, sorry. the above post is right though. see: CSS: Lesson 1: Topic D]
Re: CSS: Lesson 1: Topic C
July 30, 2012 01:24PM
I tried to set them off a bit more: /***enjoying the course***/ .. works fine .. makes my life easier.
Re: CSS: Lesson 1: Topic C
August 07, 2012 03:06PM
I think the advantages of comments should be fairly obvious. Even if something is very clear to you right now, it might not be so in a month's time, or not at all to somebody else.
Re: CSS: Lesson 1: Topic C
August 08, 2012 10:20AM
I think both methods are useful. In the css style sheets while the code can show if the dolor is a basic one (e.g. #ccc or# ggg) or a shade or mix (e.g.

#D8DFE6) it is really important to know what basic color is being applied.(black, green , red, white, grey and so on). Comments in the html file however provide important information on structure.

It can however be really tempting to leave them out - to a designers cost at a later stage if he or she wants to change something.
Re: CSS: Lesson 1: Topic C
August 21, 2012 01:28PM
Will definitely come in handy
avatar Re: CSS: Lesson 1: Topic C
August 23, 2012 03:08PM
Done - no issues.
Re: CSS: Lesson 1: Topic C
September 27, 2012 07:44PM
Comments are an easy to use but helpful addition to the code.
Sorry, only registered users may post in this forum.

Click here to login