Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
File primer
These are but a few of the graphic and image file types
Any program that uses data needs to know the name and location of the file where the data is kept and also needs to know the format in which it is organized.
In this manner, data can be located and then properly translated for use by the program that needs it.
Binary numbers in their native notation are not very user friendly
Hex notation is a easier way to depict binary that is easier to deal with Many programs, programming languages allow the use of Hex to denote binary values
Hex Notation
Binary 0000 0001 0010 0011 0100 0101 0110 0111 Hex 0 1 2 3 4 5 6 7 Dec 0 1 2 3 4 5 6 7 Binary 1000 1001 1010 1011 1100 1101 1110 1111 Hex 8 9 A B C D E F Dec 8 9 10 11 12 13 14 15
Hex.
We will be using some of these concepts when we build our web page
What is HTML?
Hypertext Markup Language (HTML) is a language in which one can tell a browser how to display a web page.
In the simple cases the bulk of the material will be text to display, and the HTML commands will be interspersed in the text, but images are also an important part of the web
example:
<H1>Chapter 1</H1>
TAGS
The browser reads and interprets the HTML text (code) in real time
Not all browsers interpret EXACTLY the same way, so results may vary! However, it is very easy to make changes to the HTML code and immediately see the effect.very nice for debugging!
HTML has a very particular structure and syntax However, it is VERY forgiving!
HTML commands (also called tags) are always enclosed in angle brackets. E.g., <title>
Tags are case insensitive, so <title> and <TITLE> mean the same thing.
The second tag in the pair is always the same as the first, but preceded by the character /.
The effect of an HTML tag is usually independent of where it appears when you are editing the HTML file (e.g., does it appear at the start of a line, in the middle, end of a line). So this is just as good. <title> War and Peace </title>
</BODY> </HTML>
Titles in HTML
titles appear in the title bar of the page titles create a frame of reference for the user
example:
Breaking Lines
<body> <h1>Chapter 1</h1> The <br> This will force the two words to appear on separate lines end. </body>
Headings in HTML
Headings of different weights are used to introduce sections (weights 1-6) Lower number is Heavier weightgo figure!
example:
Chapter 1
My Early Years
Comments
comments may be added to an HTML file to inform those who would modify or maintain the pages
example: <!--This is a comment for the reader of the HTML file, and will not appear On the page!-->
Text in HTML
Text in HTML
Text in HTML
example:
<P><FONT FACE=Arial> The rain in Spain stays mainly on the plain. </FONT></P>
appears as: (in Arial)
text can be styled using italics and boldface text fonts may be sized either using absolute or relative values special effects are available such as subscripts, superscripts, underlining and color text may also be hidden as comments
Text Styling
create italics using special <I>effects</I> which produces special effects
create boldface using special <B>effects</B> which produces special effects
Specifying Colors
The first 2 digits are the Red value, followed by the Green and Blue values 16,777,216 unique values in all!
Lists
ordered lists (automatically numbered) unordered lists (bullet points) definition lists (terms and explanations)
Ordered Lists
Outline<BR> <OL> <LI>Introduction <LI>Body <LI>Conclusion <LI>Endnotes </OL>
Unordered Lists
Types of Lists<BR> <UL> <LI>ordered lists <LI>unordered lists <LI>definition lists </UL> displayed as: Types of Lists ordered lists unordered lists definition lists
Inline Graphics
images that are placed on the page along with text and other elements <IMG SRC =logo.gif> restricted to accepted image file formats (.gif, .jpg, and .png)
Hyperlinks
references to other elements: pages, images, resources, etc. causes automatic request for linked element
First DEMOs !
Create a folder for all your web stuff Use Wordpad or Notepad to write a small document in HTML Save the document as .htm in your web stuff folder The document will save with a browser icon Click on the icon