![]() |
HTML - Getting Going |
|||||||
|
Entering tags Tags are not case sensitive but is it advisable to consistent and to stick to the same method throughout your pages. Popular browsers are very 'forgiving' if you do not form your code properly, but some may not be so. Also if you move to XML (the next version of HTML) sometime in the future, you will need to be more consistent and accurate. Heading levels Heading Levels allow you to enter 3 levels of formatting with one bit of code: bold, large and a paragraph break. There are 6 levels to choose from. Add them like this:
Horizontal Line This is an example of an empty tag - it has no closing tag, simply add the code <hr> where you want it to appear. To change the colour of the tag, you need to add an attribute - <hr color="red">. (NB spelling of color). The main colours can be typed as words but generally it is good practise to use hexadecimal codes. Other attributes on the <hr> are as follows size - by default it is 1 pixel high. Alter this to make it thicker Formatting Pages When you code in Notepad, the browser will ignore your page returns (every time you press Enter) and all but one space between words. Paragraph tag Line Break (gives a smaller space than paragraph break) Non-breaking space - special code for a space bar Formatting Text Although font tags are being deprecated (phased out and replaced with style sheets), it is still worth knowing how to alter the look of your fonts. To make text bold To change font style Attributes Attributes are added to to HTML tags to enhance them. Try these examples: To align a paragraph To add a coloured background to the page (the existing body tag) More on attributes on the Tags page Back to Top | index | email me
|