Académique Documents
Professionnel Documents
Culture Documents
HTML
Web Design
Name : Justine Louise Landicho Yr. & Sec: II Deuteronomy Date: March 10, 2013 Teacher: Sir Jonathan A. Capuso
Table of Contents
I. Title II. Acknowledgement III. Table of Contents IV. History of HTML V. About Computer (Chapter 1) VI. Chapter 2 VII. Chapter 3 VIII. Chapter 4 IX. Make your own website
History of HTML
The founder of HTML was Tim Berners-Lee and his product was made attractive to the general public by Mosaic browser which was evolved at NCSA. It has become extremely popular and well-known in the 1990s when the Internet had been developing rapidly. During this period, HTML was broadened and presented in different modifications. The Internet strongly depends on vendors and page creators who share the joint conventions for HTML. The understanding that success of Web development is based on integration of the rules has helped the Web community to create united specifications for HTML. Most users and developers understand that HTML documents must work in the same way on different platforms and browsers. Compatibility of HTML is its key benefit and it saves time for developers who dont have to create several versions of a document for different users. Otherwise the Internet wouldnt be able to be so easy-to-access and the battle of formats would be a serious obstacle for the Web evolution. Each new edition of HTML tries to achieve more unanimity among industry players and to make sure that the documents of the developers wont become unreadable in a brief time interval. The vision of the HTML developers is that all devices must be able to reach the data on the Internet: computers with different platforms, browsers and characteristics, pocket devices, cell phones, devices for speech, and many others.
Chapter 1
What is a computer?
A computer is an electronic device that manipulates information or data. It has the ability to store, retrieve, and process data.
Hardware Components
These are the physical parts of the computer which you can touch and feel. Input Devices These are peripherals in the computer that are used to enter the data and instruction in the computer. Output Devices There are peripherals in the computer that are used in producing results of computer operations into understandable product or result. Processing Devices These are responsible for the execution of the programs and control of its overall operation. Storage Devices These are physical equipment that can be considered as input and output device at the same time.
Software Components
Software is the set of instructions that tells the computer what to do. It is also known as program. System Software This is the backbone of all software. Examples are Operating Systems and Utility Softwares. Application Software These are the programs with specific function or use. Examples are Microsoft Office Family and Photo Editing Tools. Anti-Virus Software Antivirus is a protective software that are designed to defend your computer against malicious software. Examples are Avast, Avira and AVG.
Chapter 2
Types of Tags
<p> This is a paragraph. </p>
The <p> is the opening tag that indicates that the browser should display a paragraph. While on the other hand, a closing tag (</p>) looks similar except that it is initiated by a forward slash. Opening tags consist of a sequence of characters that indicate the meaning of the tag, of course surrounded by angle brackets. (<) (>) A closing tag indicates the end of the meaning of the tag. The pair of opening and closing tags are used to surround text that should be set aside as a separate paragraph.
A web browser is created to read HTML documents and display them as web pages. The browser doesnt display the HTML tags, but uses the tags to interpret the content of the page.
Editing HTML
In editing HTML, a program like Notepad is used. It is also believed to be the best editor to learn HTML. However, if youre a professional web developer, it is advised to use programs like FrontPage or Dreamweaver instead of settling for Notepad.
In saving HTML documents, you have to save them twice. First, as a text file (.txt) and finally, as an HTML file (.html). It is important to save your site documents in a designated folder so you know where to find them. It is also advisable to use simple names, like file1.html or web.htm for easier access. The filename extensions that can be used in saving your file as an HTML one are .html and .htm. To open the document, make sure to use the All Files in the file type box. Remember that if youre using a word processor for your hand coding, be sure to Save As Text or you will end up with word document and may not be recognized by your browser.
Concepts of Web
There are a few words interlinked with web that sometimes get confusing for us. Let us see the differences below.
The internet is the network of the several different computers which are connected through the linkage of accessories like copper wires, fiber optics and wireless connections. It is also known as the network of networks. While the World Wide Web (WWW) consists of the interlinked connections of information and documents which are taken as the resource by the general public. This is how millions of pages over the world display their document over the Internet. Most of these documents are using special type of protocol like the HTTP or the Hyper Text Transfer Protocol.
requested, and responds by sending the page back to the client. This is sometimes called the request/response model.
Browsers
A web browser is a software application for retrieving, presenting, and traversing information resources on the World Wide Web. An information resource in identified by a Uniform Resource Identifier (URI) and may be a web page, image, video, or other piece of information. Examples are Internet Explorer, Opera, Google Chrome and Safari.
Chapter 3
Advanced Markup
Lesson 2 : Traditional Page Layout Tables and Layout
Tables are used to display data on web sites. But there is an alternative use for them. Tables make it possible to divide text into columns, and to separate blocks of text and graphics into either columns of a specified pixel-width or a percentage width relative to the other columns in the table. They are also used to lay out sections of text and graphics in imitation of how this is done in printed media.
construct a layout using a table. The rowspan and colspan attribute of the <td> element direct cells to span more than one row or column.
<html> <title> Complex Table </title> <table width=400 border=1> <tr> <td colspan=4> This cell has a colspan of 4 </td> </tr> <tr> <td rowspan=3> This cell has a rowspan of 3 </td> <td> </td> <td> </td> <td> </td> <td> </td>
</tr> <tr> <td> </td> <td> </td> <td> </td> </tr>
The values for the width attribute can either be given as percentage or a fixed number of pixels. The values for align attribute are left, center, or right. The values for valign attribute are top, middle, bottom, or baseline.
When working with tables for layout, it is important to consider what happens to that table when it is read by a browser that does not support tables. Linearization is when the browser reads the text from the top left hand cell, moving along the cells to the right and then starting on the next line.
<html> <head> <title> A document containing frames </title> </head> <frameset cols=130,*> <frame src=menupage.html> <frame src=contentpage.html> </frameset> <noframes> <body> This is what will appear on the screen if the person viewing the site isnt using a browser that supports frames. </body> </html>
The <noframes> element contains content that will display if the page is viewed using a browser that doesnt support frames.
The <frameset> element takes a cols attribute, which indicates that the frames contained will act as columns within the main browser window. The value of the cols attribute is a comma-delimited list of the widths and columns will each take. A width can be specified as an integer value for the number of pixels, a percentage value, or a mathematical value.
Nested Framesets
It is possible to nest framesets inside one another. It means to close the tag by pair starting from the middle up to the side.
<p> <u> <i> <b> This is a paragraph. </b> </i> </u> </p>
In the example above, we closed the <b> tag because it came last from the set of opening tags, followed by the <i> tag, <u> tag and finally the <p> tag, which came first from the set of opening tags.
Slicing
It is another old-fashioned way of creating a page layout. The aim was to optimize the various elements of the page layout as either GIF or JPEG files, depending on what works best for that part of the page.
What is JavaScript?
JavaScript is related with HTML pages. In short, JavaScript is also a programming language. It allows us to create programs that tell the computer exactly what to do. Programs are made up of lines of instructions, which are processed sequentially. It is also a particular type of programming language known as scripting language. These are languages that can be embedded into applications. Programs in scripting languages are usually known as scripts.
src=url
This attribute is optional. Its value is a url that identifies a .js file.
language=javascript
It is used to select other programming languages and specific versions of JavaScript.
type=text/javascript
It is also optional, because the default programming language in all browsers has been JavaScript. In HTML, it is better to leave it out. The browser knows what to do.
Dynamic Menu
Sample Code:
<html> <head> <title> Javascript-Hypertext menu example </title> <!--//document.window.location = go_to_value --> <script language=javascript type="text/javascript"> <!--
function go_to_menu(go_to_value) {
</head>
<body>
<body> <p> Press the 'go to' page button this will take you to example 1 or example 2. <br> Where you go depends on what's displayed in the drop down list. </p>
</select>
</body> </html>
Sample Output:
Dialog Box
Sample Output:
Sample Code:
<html> <head> <title> Javascript - Dialog box example </title> </head> <body> <p> Click on the image </p>
Calculator
Sample Output:
Sample Code:
var plus,minus,divide,times
function initialise(){ plus=document.calc.operator.options[0] minus=document.calc.operator.options[1] divide=document.calc.operator.options[2] times=document.calc.operator.options[3] } function calculate(){ x = parselnt(document.calc.val1.value) y = parselnt(document.calc.val2.value) if (plus.selected) document.calc.answer.value=x + y if (minus.selected) document.calc.answer.value=x - y if (divide.selected) </script> document.calc.answer.value=x / y if (times.selected) </head> document.calc.answer.value=x * y } <body onLoad="initialise()"> <h2> Calculator </h2> </script>