Twitter and Creative Commons Code Don’t Validate!
Hello, and contrary to what you’ve probably been thinking, I am not dead.
After finishing my blog redesign (you can see it on the main page), I tried to validate it.
It scared me when it told me the Twitter badge code and the Creative Commons copyright code were both not valid!
I came up with some fixes for these, such as a valid Twitter badge code and valid Creative Commons code. Note: I strongly suggest against using the flash code. It’s ridiculously slow!
Here is the Twitter Valid Code:
Now, you have ought to notice the bolded sections… namely the bolded sections of it such as your-username-here and number-to-display.
These spots are the parts that should be replaced! The your-username-here should be replaced with your username, and the number-to-display should be replaced with the number of updates you’d like to show, not going over 15 or below 1.
I hope you find this useful. If you don’t really know how to code very much but you just want the Twitter code, you can use it. It would be very smart if you actually retyped it in instead of copy-pasting.
My solution for the Creative Commons code is simple.
<p style="align:justify"><a rel="license" href="your-license-site-here">
<img align="left" alt="Creative Commons License" src="your-image-for-license-here" />
<i>your-name-here</i> is licensed under a
<a rel="license" href="your-license-site-here">your-license-name-here</a>.</p>
Let’s overview this code now.
your-license-name-here is your URL to the license page. For example, mine is http://creativecommons.org/licenses/by-nc-nd/3.0/us/.
your-image-for-license-here is the image that you chose; the place where it is. For example, mine is http://i.creativecommons.org/l/by-nc-nd/3.0/us/88×31.png.
your-blog-name-here is your blog name. For example, mine is chaotic mortal.
your-name-here is the author of the stuff you are trying to copyright. For example, mine is Brad.
your-license-name-here is your stuff that the readers will see. You can edit this so it works out for you. For example, mine is Commons Attribution Noncommercial No-Derivative Works 3.0 United States License.
Then you are finished! These sections of code should be valid now! At least they work on mine…