efoto said:
If that is the case, is what clayj said still valid? If I liked someone else's code on a given site could I reproduce it for a personal site/blog type setup or would that be prosecutable?
As far as copyrights go, I was unaware that everything was instantly copyrighten the moment it was published, it seems registration would need to take place to make anything else happen. What is to prove that I didn't happen to write the same code as someone else? (not me, but someone web-savvy)
Yes, it would be prosecutable. The only way around it would be argue fair use, which usually requires using only a snippet of code for educational or personal use. If you create a webpage using code someone else wrote, and that code is just wholesale lifted because you couldn't bother being original or whatever, the its copyright infringement. You might win the case in the end, but someone could easily bring you to court for it.
That said, this goes on all the time, and most of the time they don't care unelss you are using it for a competing site, or critizing them, or otherwise infringing on their brand in a negative way.
And yes, its true the copyrights don't have to be registered. It is the right to copy, and you don't have to register for your rights, no matter what they are. You produce something, you own it. Period. The only time it gets tricky is when there is a dispute about who made something first. Then having a registered copyright is pretty useful.
And as for how to prove who wrote something first, well, that's why we have courts. If they can't prove infringment, they can't get anything from you.
edit: probably a bigger deal than stealing code is stealing graphics. Most html code does basic stuff that's just part of the language and would therefor not be copyrightable. but the graphics placed on the page by that code are often unique and copyrightable.
Further edit: you don't have to publishs omething for it to be copyrighted. the moment you make it you own the sole rights to copy it. You can publish it, or sit on it. Its your creation to do with what you want.