Apologies for the delay in getting the slides online. Please find below a link to the powerpoint presentation that accompanied the directed tutorial on Object Orientated Design Concepts in C++ last Wednesday (2009-11-04).
The ID attribute is used to uniquely identify a particular tag (& it's contents) on a HTML page. Once a tag has an ID we can apply CSS styling specifically to that tag (& it's contents). This is useful to prevent the use of deprecated tags (<center>, <font>, <b>, <u>, <i>, <strong>, <hn>, etc). Let's take an example to demonstrate what I mean: a simple page with a heading of "Hello World!!" that we want as centred bold piece of text in large font, followed by a paragraph saying "Welcome to my first webpage." which we want right aligned.
Sample code for adding and removing items from a vector
Please find in the attached file sample code for adding and removing custom items from a c++ vector.
HTML Tutorial 5
OK was supposed to be finished by now. 4 lessons I said. That won't be so bad. Ah well I do witter on. You should at this stage have a good idea of basic html, how to set up a page [introduction], create a color scheme / layout format [cascading style sheets], insert images and create hyperlinks [pix and lynx] and tables [lists, divs and tables]. Incidentally, we learned about line breaks [<br /> tag] and lines [<hr /> tag].
Don't know about you guys but I'm wrecked. It's much harder explaining this stuff than I thought. Hope I'm doing ok. Ok now onto the last html tags we'll look at before we move on to Scripting. Lists, Divisions and Tables. Lists are easy-peasy. We'll look at them in a moment so I'll deal with a tickler of a problem now. You see technically Tables are only to be used for displaying tabulated data (that is data in a table such as you would see in a spreadsheet).