Customer Street advice on using the BODY tag in your website coding.
What is the BODY Tag ?
The body tag defines the main body area of the page. It contains all the contents of the page including text, images, colours, graphics etc. The body tag starts with <body> and then ends with </body>. Everything between these tag will be show on page (unless specific attributes are defined to a tag).
Example
Some Optional Attributes
alink
Values - rgb(x,x,x), #xxxxxx, colorname
Specifies the color of the active links in the page. This function has been Deprecated. Use styles / style sheets instead.
background
Values - rgb(x,x,x), #xxxxxx, colorname
Specifies an image to use as the background on the page. This function has been Deprecated. Use styles / style sheets instead.
bgcolor
Values - rgb(x,x,x), #xxxxxx, colorname
This controls the background colour of the page. This function has been Deprecated. Use styles / style sheets instead.
link
Values - rgb(x,x,x), #xxxxxx, colorname
Specifies the color of the active links in the page. This function has been Deprecated. Use styles / style sheets instead.
Customer Street advice on using the PARAGRAPH tag in your website coding.
What is the PARAGRAPH Tag ?
The paragraph tag defines a paragraph. A paragraph should start with <p> and end with </p>. Everything in between these tags will be in the paragraph.
Example
Some Optional Attributes
align=”left” - Tell the text to align to the left.
align=”right” - Tell the text to align to the right.
align=”center” - Tell the text to center align.
align=”justify” - Tell the text to justify to both left and right sides.
So your paragraph would look like
<p align=”right”>This paragraph will be right aligned</p>
Standard Attributes
id, class, title, style, dir, lang, xml:lang
These will be explained in more detail in future posts
Event Attributes
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
These will be explained in more detail in future posts
Why is the Paragraph Tag important ?
Customer Street advice on using the COMMENT tag in your website coding.
What is the COMMENT Tag ?
The comment tag was designed so that you can add comments to your website code. Comments within these tags are ignored by internet browsers so you can add whatever comment you like. None will be seen in the browser. Use comment tags to add comments to you code for reference to help you later on should you need to quickly find certain areas of code.
Example
The comment tag is in green in this sample. Colours maybe different depending on the software you use.
Why is the Comment Tag important ?
The comment tag is important as you can comment and add notes to your code making changes and fault finding much quicker for you.
Customer Street advice on using the HTML DOCTYPE tag in your website coding.
What is the DOCTYPE Tag ?
The <!DOCTYPE> declaration is the very first thing in your document.
It is placed before the <html> tag and this tag tells the browser which HTML or XHTML specification the document uses. Note that this tag does not have a close tag.
In HTML 4.01 the DOCTYPE tag specifies three document types: Strict, Transitional, and Frameset.
DOCTYPE HTML Strict
Use this when you want clean markup, free of presentational clutter. Use this together with Cascading Style Sheets (CSS)
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
DOCTYPE HTML Transitional
The Transitional DOCTYPE includes presentation attributes and elements that W3C expects to move to stylesheets. Use this when you need to use HTML’s presentational features because your readers don’t have browsers that support Cascading Style Sheets (CSS)
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
DOCTYPE HTML Frameset