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:-
tag{ attribute: value;attribute:value…….}
Ø Design A Web Page Using Cascading Style Sheet:
Working with cascading style sheets
BODY {background-Color: 'cyan';}
H1 {Color: 'red';}
H2 {Color: 'blue';}
P {Color: 'green';}
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:
SPAN
H2, H3, H4{font-family: Arial Black; font-size: 14 pt; font-style: oblique; color: yellow; background: green}
Body {margin-left: 0.30 in; margin-right: 0.30 in; margin-top: 0.40 in}
p {font-family: Verdana; font-size: 12 pt; font-style: normal; font-weight: bold; color: blue}
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:
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:
USING DIV TAG
DIV{BACKGROUND-COLOR:#9999FF; MARGIN-BOTTOM:3em}
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:
Working with Borders
BODY{BACKGROUND-COLOR:#776688}
DIV{TEXT-ALIGN:CENTER; MARGIN-BOTTOM:1em; PADDING:1em}
.THICK{BORDER-WIDTH:THICK}
.MEDIUM{BORDER-WIDTH:MEDIUM}
.THIN{BORDER-WIDTH:THIN}
.GROOVE{BORDER-WIDTH:GROOVE}
.INSET{BORDER-WIDTH:INSET}
.OUTSET{BORDER-WIDTH:OUTSET}
.BLUE{BORDER-COLOR:BLUE}
CLASS=”THIIN BLUE INSET”>This text has a thin blue inset border
No comments:
Post a Comment