I've got a little list
OK so now things are getting more serious. There's a definite guidance appearing to use indentations so that my code remains readable, I guess now it's going to get a lot more complicated.Creating lists is a new thing, and you can order them (i.e. number) by specifying an ordered list with the <ol></ol> tags. Nice and straightforward, with a little repetition to bed it in. So making an unordered list just needs me to use ul instead of ol. I can then nest lists inside each other by adding in a new type of list between the tags for the parent list.
I've got a new style - comments, please
Now we're going back to some CSS for adding comments - apparently this will make learning things easier later on. Simply adding '<!--' in front and '-->' afterwards makes a comment that will only show in the code, so you can make notes for yourself or other programmers. You can also insert a <p style="___"> tag to change the style of a paragraph. This has to be added within the open paragraph tag, with a normal close paragraph tag after the content.A splash of colour
Now we can use styles to add colour. While I'm familiar with using RGB and HEX codes to specify colours, I was surprised to find that there is a list of colour keywords on the World Wide Web Consortium site. You can combine colours with font sizes, separating with a semi-colon.Oh, and make sure you use the American spellings... Now I also have the power of font.
And because you can never have too much style...
Time to go for every kind of styling there is, now we're adding background colour, alignment, strong words and emphasis. Whatever next? It's obviously easy to get carried away here, so a little sensibility will be called for. This is obviously why visual style gets such a big fuss in companies! Making text bold or emphasised is easy - just add the 'strong' or 'em' tags.And just like that, I have completed the second part of HTML Basics!