![]() |
|
How HTML Works... |
|
| How HTML Coding Works | ||||||||
|
HTML is a set of instructions or recommendations to the browser on how to format the text and layout the text and graphics of a web page as it displays in the browser window. HTML stands for hypertext markup language. The "hyper" part means that a user can use the mouse or keyboard to interact with the page and cause commands to be implemented without having to write program command lines after a onscreen prompt like we used to do in DOS. Both text and graphics can be "hyper." What are some of the actions that might happen if you click on hypertext?
The "markup" part means that you surround text and graphics with tags that determine how the text and graphics are formatted and how the text and graphics are laid out and displayed on the web page. With html your are
not technically programming, rather you are coding and a program, written
in an electronic program language, executes the code. The electronic language
of the web browser is HTTP - hypertext transfer protocol (using TCP/IP
layer - Transmission Control Protocol/Internet Protocol). This is analogous
to looking at printed words (the code) and knowing that it is not the
same as speaking (requires the voice box, lungs, muscles, brain etc.)
to execute commands to cause speaking to occur. |
||||||||
| Versions of HTML | ||||||||
|
The W3C or World Wide Web Consortium is the governing body that sets html standards and registers new features for coding webpages. All major vendors, network and Internet backbone companies belong to the W3C and usually follow its guidelines.
The W3C is working to merge html with XML, extensible markup language. XML allows users the power to invent their own tags and create their own data definitions AND works better with databases, forms and dynamic webpages. The merged language would be XHTML. The goal of the W3C is to standardize html. Currently we have two standards:
Transitional allows single and paired tags and allows proprietary versions of html coding to be generated and causes different browsers and browser versions to display the same page differently. MS FrontPage, a WYSIWYG authoring tool, is a grand example of proprietary software. When you create a web page using FrontPage it writes non-open standard code and adds tags. It only works on servers that support FrontPage extensions. Other authoring tools,
such as Dreamweaver, use only open standard codes. |
||||||||
| Making a Web Page with HTML Coding | ||||||||
|
An HTML document has two sections or parts
Example: Search String = House Painting Santa Cruz Choose: ...the top 2 hits and view the "source code" When you begin to code an HTML document you will use a Text Editor such as Notepad that comes with the Windows operating system and Simpletext that comes with the Mac operating system. This allows you to create a typed document on screen and to mark it up (format it) using HTML tags at the beginning and end of text bursts. HTML tags are always included within a bracket system that uses the keyboard brackets that look like the "greater than" and "less than" signs. For example: <Font> paired with </Font>. You will save your document as an html file by choosing the "Save as" option and choosing the extension .html for your file such as: yourfile.html rather than .txt or .doc. Your browser reads the file and displays it according to your tags by recognizing the .html extension. There are three parts to HTML speech (read tags) |
||||||||
|
<element attribute="value">cool and groovy web lingo</element> where element, attribute and value could be <font color="red">cool and groovy web lingo</font> |
||||||||
|
This would display as: cool and groovy web lingo HTML (very) Basics
Quick Quiz: For the following, what is the element, attribute and value?
Note: As you type a simple text document, the browser will ignore any carraige returns or multiple spaces. Note: Some
tags are single tags instead of paired tags, with only a starting tag
but no ending tag
such as <IMG> which tells the browser to look for an image
and load it on the page at that point.
Note: Color in a browser is monitor color or RGB color. RBG stands for red, blue and green. It is also called Indexed Color (256 RGB colors are browser safe) from additive color, like a monitor with light shining through RGB color dot pixels on a screen. (not CYMK or print color which is subtractive through light blocking and absorbing)
|
||||||||
| HTML Document's Two Parts | ||||||||
|
As noted above, an HTML document has two sections or parts, the Head and the Body. The minimal tags you need for a simple Web Page are: <html> <head> <body> Insert some content here </body> In Class Exercise: Open Notepad and type the HTML above. Make a folder on your desktop and save the file as index.html. Close Notepad and then test the page in the browser. Next, reopen the page and use the following tags. Save and test to see how the text is reformatted:
|
||||||||
| Working with HTML file names | ||||||||
|
Saving Your Web Page File as an Html File - When you save the page, the browser knows it's a web page and can display it because the code was saved as an HTML file with the .htm or .html extension. The home or splash page (the page you want to use as your front door) should be named
Those are the names that Netscape and Internet Explorer look for if someone knows your domain name but doesn't specify a file there. The most important thing about the file name is that you call it something that will help you in organizing your folders and files for your Web site. (see below)
First, the page title can have capitals, be a phrase, use spaces and odd characters, numbers and follow other normal writing conventions. Second, the name is used in three (3) very important ways:
Site Organization - Carefully plan your site from the beginning for file organization. It will be essential in updating and changing your files and pages later. It will be amazing just how confusing it gets as the site grows and time passes.
|
||||||||