Notes of Web Technology / HTML
Notes of Web Technology/HTML
What is WWW or W3 (World Wide Web)?
The WWW are abbreviation of World Wide Web also called W3 and commonly called Web. WWW is a way of accessing the hyperlink document through internet.
What is HTML?
HTML is a markup language for creating web pages. HTML is abbreviated from Hyper Text Markup Language, where markup language is a set of markup tags. These tags tell the browser how to display the text.
What is DHTML?
In DHTML, D is abbreviated from Dynamic and HTML means Hyper Text Markup Language. DHTML is a collection of different technologies which are used together to create an interactive and animated web sites by using a combination of a static markup language HTML , client-side scripting language such as JavaScript , PHP, CSS , and the Document Object Model.
There are four parts to DHTML:
Document Object Model (DOM) (definition)
Scripts
Cascading Style Sheets (CSS)
XHTML
Document Object Model (DOM): -
The DOM is what allows you to access any part of your Web page to change it with DHTML. Every part of a Web page is specified by the DOM and using its consistent naming conventions you can access them and change their properties.
Scripts: -
Scripts written in either JavaScript or ActiveX are the two most common scripting languages used to activate DHTML. You use a scripting language to control the objects specified in the DOM.
Cascading Style Sheets: -
CSS is used in DHTML to control the look and feel of the Web page. Style sheets define the colors and fonts of text, the background colors and images, and the placement of objects on the page. Using scripting and the DOM, you can change the style of various elements.
XHTML: -
XHTML or HTML 4.x is used to create the page itself and build the elements for the CSS and the DOM to work on. There is nothing special about XHTML for DHTML - but having valid XHTML is even more important, as there are more things working from it than just the browser.
Features of DHTML
There are four primary features of DHTML:
Changing the tags and properties
This is one of the most common uses of DHTML. It allows you to change the qualities of an HTML tag depending on an event outside of the browser (such as a mouse click, time, or date, and so on). You can use this to preload information onto a page, and not display it unless the reader clicks on a specific link.
Real-time positioning
When most people think of DHTML this is what they expect. Objects, images, and text moving around the Web page. This can allow you to play interactive games with your readers or animate portions of your screen.
Dynamic Fonts
This is a Netscape only feature. Netscape developed this to get around the problem designers had with not knowing what fonts would be on a reader's system. With dynamic fonts, the fonts are encoded and downloaded with the page, so that the page always looks how the designer intended it to.
Data binding
This is an IE only feature. Microsoft developed this to allow easier access to databases from Web sites. It is very similar to using a CGI to access a database, but uses an ActiveX control to function. This feature is very advanced and difficult to use for the beginning DHTML writer.
Writing and Testing HTML file
You can write an edit HTML file in any simple text editor such as Note Pad in windows etc .So open your text editor and start writing HTML code.
<HTML>
<HTML> is
the very opening for any HTML Web Page. All the other element are written
between <HTML> and </HTML> tag. </HTML> tag is placed in the end. <HTML> tell to
the browser that this is an HTML Page.
So far what you have coded looks like this:
<HTML>
</HTML>
After opening your document with <HTML> you will start a new line and code
<HEAD> and </HEAD>
<HEAD> and </HEAD>
The <head> tag is basically container tag which contain some informational
tag for browser and Search engine. For example <Title> tag which is not only
display on the title bar as title of page also tell to search engine that what
is in this page. Head tag also contain some more information about the author,
copyright, keywords etc.
In this simple page we Placed only Title Tag between Head Tag .Title tag defines
the title of the document and also Title tags tell search engines what your page
is about. Every thing in title tag is appear on the title bar.
Now your page coding is look like :
<html>
<head>
<Title> This is my first page </Title>
</head>
After Head tag we place another tag which is body tag. This tag contain actual contents which will be viewed on your Web page. After typing all contents write