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.
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.
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.
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.
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
tag .
So far your total coding in the text editor looks like this:
<html>
<head>
<title>My First Page</title>
</head>
<body>
</body>
</html>
Now Write some thing in between <BODY> and </BODY> Tag this mater is display
of your HTML Web Page.
For Example:
<html>
<head>
<title>My First Page<title>
</head>
<body>
Hello HTML , This is My First page and contain HTML , HEAD , TITLE and BODY Tag.
</body>
</html>
Now Save this File and give a name. Normally your text editor save the file as text file with txt extension so when you are going to save this file first select All file in Save as Type. and then give the file name with extension. for example learning.html
After saving this open this file in your browser.
HTML is a markup language, these markup are called tags which tell to the
browser how to display the text on user screen. In HTML Document tags element
make the structure of Webpage and when user open this code in its browser then
these element tells the browser how your website display. All the tags in HTML
consists on a start tag and end tag but some element may be have only start tag.
These element are called Void element. for example <BR> which is used to break
the line.
An HTML element starts with a start tag is also called opening tag and ends with
an end tag is called closing tag . Some HTML elements have empty content Empty
elements are closed in the start tag. Most of HTML elements may have some
attributes.
For example, a paragraph, which is represented by the p element, would be
written as
<p>In the HTML syntax, most elements are written ...</p>
Attribute are the Additional information about that tag which define the characteristics of an element for example Height, Reference, Color etc. The Attribute have two part one is attribute name and other is its value. Below we briefly discuses the different attribute in HTML.
The general syntax is as follows:
<tag attribute 1 = "value" attribute 2 = "value" ... >
For example :
<body bgcolor="#E6E6FA">
In HTML you must declare the document type at very first line before the
<HTML> tag . The <!DOCTYPE> declaration tell to the web browser about the
version of HTML on this page you used.
In each version of HTML the Declaration of Document type is different.
For example
In HTML 5 we declare the document Type as:
<in HTML 4.01 Strict we can use all HTML elements and attributes. One restriction is that we can not include any presentational elements. In this version Framesets are not allowed. The document type declaration for HTML 4.01 Strict is as follow: In This version we can use all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed. The document type declaration for HTML 4.01 Transitional is as follow: In This version we can use all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). In this version we cal also use The Framesets. The document type declaration for HTML 4.01 Frameset is as follow: For example: Main Page