Tuesday, August 12, 2008

DHTML Tutorial

© Moreniche

1. INTRODUCTION TO DHTML:

DHTML stands for Dynamic Hyper Text Markup Language. It is also a scripting language that is used for developing attractive and catchy web pages. With the help of DHTML we can combine html with cascading style sheets and other scripting languages. “css” feature in DHTML is used to determine an element ‘s size color, position and a number of other features. The working of DTHML is same as that of html that is writing the coding in the notepad and saving the document as html file.

Cascading Style Sheets:

Cascading style sheets allow you to specify the style of your page element (font, spacing, margin, etc) separated from the structure of your document (section header, body text, links, etc). Cascading style sheets enforce standards and uniformity throughout a web site and provide numerous attributes to create dynamic effects. Css can make global changes to all documents from a single location.

This separation of structure from content allows greater manageability and makes changing the style of your document easier. The style assigned process is accomplished with the tags. Between the tags are written within the …. tags.

Syntax:-

Ø Design A Web Page Using Cascading Style Sheet:

</p> <p class="MsoNormal" style="text-align: justify;">Working with cascading style sheets</p> <p class="MsoNormal" style="text-align: justify;">



Vision 2000

Computer Education

Authorised software user of Microsoft

Output Of The Web Page:

The SPAN Tag:

…….. TAG:-

SPAN is a generic grouping element it doesn’t apply any inherent formatting to it s contents SPAN tag plays a prominent role in style sheets its main use is to apply styles or ID attribute to a block of text.

It is displayed inline a so called in line – level element with other text. With no liner breaks a similar element is the div element.

In the body of the document …….. is used to set the boundaries of the rules styling specifications.

Ø Design A Web Page Using SPAN Tag:

</p> <p class="MsoNormal" style="text-align: justify;">SPAN</p> <p class="MsoNormal" style="text-align: justify;">

Garments Sale

We are giving a sale on all types of garments. You will get here suits, shirts, pants, jeans, cotton pants, leather jackets, T-shirts, casual wear, sarees, salwar suits etc.

Special offer for Children

For childrens you will get a huge range of collection of frocks, pants, shirts, T-shirts, Baba-suit, gallies, ghagra, churidars etc. We are offering 10% discount if the purchase price is more than Rs.500.

Winter Special

Under one roof we are giving sale for winter garments too. Shawls, sweater, woolen jackets, blankets are available.

Output Of The Web Page:

The DIV Tag:

…..
TAG

A similar element is the div tag element which also applies no inherent style, but is displayed on its online with margins above and below also called block level element a web page can be divided into segments or divisions called DIV’s. Each segment starts with div and ends with div these segments can be positioned anywhere on the page. The DIV tag has a position attribute that can take one of the two values, which are absolute or relative position the segment with respect to the top/ left edge of the browser window. In contrast with the absolute, relative position the segment in relation to the other element on the page.

Ø Design A Web Page Using DIV Tag:

</p> <p class="MsoNormal" style="text-align: justify;">USING DIV TAG</p> <p class="MsoNormal" style="text-align: justify;">

Each segment starts with div and ends with div these segments can be positioned anywhere on the page. The DIV tag has a position attribute that can take one of the two values, which are absolute or relative position the segment with respect to the top/ left edge of the browser window.

Each segment starts with div and ends with div these segments can be positioned anywhere on the page. The DIV tag has a position attribute that can take one of the two values, which are absolute or relative position the segment with respect to the top/ left edge of the browser window.

Each segment starts with div and ends with div these segments can be positioned anywhere on the page. The DIV tag has a position attribute that can take one of the two values, which are absolute or relative position the segment with respect to the top/ left edge of the browser window.

Output Of The Web Page:

Ø BORDER Attribute:

The border lies between the padding space and the margin space, and has numerous properties to adjust its appearance.

  • Design A Web Page Using BORDER Attribute:

</p> <p class="MsoNormal" style="text-align: justify;">Working with Borders</p> <p class="MsoNormal" style="text-align: justify;">


This text has a thick groove border


MEDIUM GROOVE”>This text has a medium groove border


This text has a thin groove border

CLASS=”THIIN BLUE INSET”>This text has a thin blue inset border


<P CLASS=”MEDIUM BLUE OUTSET”>This text has a medium blue outset border


Output Of The Web Page:

Note: - Keep in mind that the BORDER styles are available only for Macintosh systems.

The LIST Tag:

We can also create list in DHTML. Following are the attributes that can be specified with list.

Ø Design A Web Page Using LIST Tag:

LIST

Syllabus for 1st semister

Dear Students

We wish you all the best for your 1st semister exam. We are giving you the syllabus details and we going to declare the exam date on 25thNovember 2001.

Syllabus details:

  • Windows 98

  • Ms Office 2000

  • Internet

  • C++

  • Visual Basic

No comments:

Search

My Blog List