HTML 0.0 – the original version developed by Tim Berners Lee and other researcher at CERN. It has long been supplanted by the succeeding versions of HTML
HTML 1.0 – the first public version of HTML, which included support for inline images and text controls. Some browsers, most notably the text-based Lynx browser used on the UNIX system, operates at the 1.0 level
HTML 2.0 - the version supported by all graphical browsers including Netscape Navigator, Mosaic and Internet Explorer. It supported interactive form elements such as option buttons and text boxes. A document written to follow 2.0 specification would be readable by most browser on the Internet.
HTML 3.2 – this version is also referred to as HTML+. It includes more support for creating and formatting tables and expands the option for creating interactive elements. It also allows for the creation of complex mathematical equations.
All HTML Documents Have the Same Structure <HTML> T The first 6 tags are always the same in basic HTML document. Also known as HTML Headings . <TITLE> Online Resume </TITLE> </HEAD> D> <HEAD> </HTML> </HTML> IINTRODUCTION TO HTML <TITLE>
- Elements include backgrounds, link colors and font faces
Common Body Tags/Syntax in Creating a Web Page
Creating Heading Tags HTML has 6 levels of heading which arrange from biggest to smallest size <H1> My Resume </H1> <H2> My Resume </H2> <H3> My Resume </H3> <H4> My Resume </H4> <H5> My Resume </H5> <H6> My Resume </H6>
<p> - P element forms a paragraph, blank line before and after
- adds an extra line before text to separate it from any text that proceeds it.
</p> to close the paragraph tag
HTML Line Breaks Use the <br /> tag if you want a line break (a new line) without starting a new paragraph: The <br /> element is an empty HTML element. It has no end tag. <br> or <br />
Saving a new HTML Document 1. Pull down the File menu and select s ave As 2. You will now see the Save As dialog box 3. Once you’ve determined the location for the file, you will need to give the file name. There are some rules to follow when naming HTML files: No spaces, and special characters a (é,%,#....) No very long name Generally, keep the file names all lower case. All file names must end with the extension of .htm or html
After Saving the Document, you should see the name of the document at the top of your WordPad window In this case, the file is called index. You will not see the extension of .html and that is to be expected.
Previewing a Local HTML Document Go to the local folder and double clic on the index.htm file This will open the index.htm in your default internet bowser ( Netscape or MS internet explorer )
Character Formatting <CENTER>Centering</CENTER> <HTML> <HEAD> <TITLE>The Moroccan NODC, Rabat</TITLE> </HEAD> <BODY> <CENTER> <H1>Welcome to The Moroccan National Oceanographic Data Center – Odinafrica - Rabat </H1> </CENTER> </BODY> </HTML> INTRODUCTION TO HTML
Character Formatting <B> Bold </B> & <I> Italics </I> <BR> - The Break Tag <HTML> <HEAD> <TITLE>The Moroccan NODC, Rabat</TITLE> </HEAD> <BODY> <CENTER> <H1>Welcome to The Moroccan National Oceanographic Data Center – Odinafrica - Rabat </H1> </CENTER> </BODY> </HTML> <H3>Contact Information</H3> <B>CNDIO Maroc</B><BR> PO Box 1014-Avenue Ibn Batouta, Rabat Maroc <BR> Téléphone : (212). 37. 67. 59. 09 <BR> Fax : (212). 37 67 59 09 <BR> INTRODUCTION TO HTML
Close nested tags in the reverse order from which they were opened
Emphasis (italics) style
<EM> … </EM>
Strong (bold) style
<STRONG> … </STRONG>
<B> and <I> tags deprecated
Overstep boundary between content and presentation
Character Formatting <CENTER>Centering</CENTER> <HTML> <HEAD> <TITLE>The Moroccan NODC, Rabat</TITLE> </HEAD> <BODY> <CENTER> <H1>Welcome to The Moroccan National Oceanographic Data Center – Odinafrica - Rabat </H1> </CENTER> </BODY> </HTML>
Attribute Example Purpose size="number" size="2" Defines the font size size="+number" size="+1" Increases the font size size="-number" size="-1" Decreases the font size face="face-name" face="Times" Defines the font-name color="color-value" color="#eeff00" Defines the font color color="color-name" color="red" Defines the font color
Destination – a hypertext document contains links that you can select, usually by clicking a mouse, to instantly view another topic or document. Creating Anchors <A> - tag creates an anchor, text that is specially marked so you can link to it from other points in the document. <A Name = “EMP”>Employment</A> <Name = “PHOTO”>IMG SRC=“Taylor.gif></A>
<A HREF = “EMP”> EMPLOYMENT</A> Link tags – tags that create links HREF – Hypertext REFerence - refer to an anchor that you place in the document. “ #anchor_name” refers to that anchor with a pound (#)symbol.