Professional Documents
Culture Documents
ANJALI PRASAD
ENROLLMENT NO.:00213401918
INDEX
Elements and Tag: HTML uses predefined tags and elements which tells the
browser about content display property. If a tag is not closed then browser
applies that effect till end of page. Eg: <p>introduction to HTML</p>
<sub> -
Subscript text
<sup> -
Superscript
text
Pre-Tag:
The
HTML <pre>
element
defines
preformatted
text. The text
inside
a <pre> eleme
nt is displayed
in a fixed-
width font
and it
preserves both
Font Tag: The HTML <font> tag defines the font size, color and
face of text in the HTML document. This tag is also commonly
referred to as the <font> element.
Basefont tag
The HTML <basefont> tag defines the default font-family, font-size
and color for the text in the HTML document. This tag is also
commonly referred to as the <basefont> element.
6. EXPLAIN ORDERED LIST, UNORDERED LIST,
DEFINITION LIST, DIRECTORY LIST & MENU LIST
WITH THE HELP OF AN EXAMPLE WITH ITS
ATTRIBUTES.
Ordered List:
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The list items will be marked with numbers by default.
RESULT:
Unordered list:
An unordered list is a collection of related items that have no special order or
sequence. This list is created by using HTML <ul> tag. Each item in the list is
marked with a bullet (disc), square, circle.
Definition / Description list:
HTML supports a list style which is called definition lists where entries are
listed like in a dictionary or encyclopedia. The definition list is the ideal way to
present a glossary, list of terms, or other name/value list.
Definition List makes use of following three tags.
Directory list:
The <dir> (short for directory) tag specifies a directory list. It was designed to
be used for creating multicolumn directory lists.
Menu list:
The <menu> tag defines a list/menu of commands.
The <menu> tag is used for context menus, toolbars and for listing form
controls and commands.
7. GIVE EXAMPLE OF NESTED LIST
Nested list:
A nested list or a sub list is a list within a list. The trick to marking nested
lists up correctly in HTML is to recognize that the sub list is actually a child of
a list item and not of a list. Start by creating a list. It can be unordered or
ordered:
Unordered html:
Ordered List:
8. 8. ILLUSTRATE IMAGE TAG WITH ITS ATTRIBUTE
Image tag:
The <img> tag is
used to embed an
image in an
HTML page.
The <img> tag
has two required
attributes:
Anchor Tag
The HTML anchor tag defines a hyperlink that links one page to another page.
It can create hyperlink to other web page as well as files, location, or any URL.
The "href" attribute is the most important attribute of the HTML a tag. and
The href attribute is used to define the address of the file to be linked. In other
words, it points out the destination page.
10. MAKE THE FOLLOWING TABLE WITH THE HELP OF
HTML TAGS
Sem 7
Sem 8
Sem 9
Sem 10
11. MAKE FOLLOWING TABLE WITH THE HELP OF HTML
CODE THROUGH
Colspan
WDD
SDM FM
MIS CB STP
WDD LAB
Vertical Frame:
Horizontal Frame:
PREPARE AN APPLICATION FORM.
Coding:
<html>
<head>
<title>ApplicationForm</title>
</head>
<body bgcolor="grey">
<h1>ApplicationForm</h1>
<br>
<br>
<form>
<label> Firstname</label>
<input type="text" name="firstname" size="15"/> <br> <br>
<label> Middlename: </label>
<input type="text" name="middlename" size="15"/> <br> <br>
<label> Lastname: </label>
<input type="text" name="lastname" size="15"/> <br> <br>
<label>
Course:
</label>
<select>
<option value="Course">Course</option>
<option value="BBA">BBA</option>
<option value="BBA(CAM)">BBA(CAM)</option>
<option value="LLB">LLB</option>
</select>
<br>
<br>
<label>
Gender:
</label><br>
<input type="radio" name="male"/> Male<br>
<input type="radio" name="female"/> Female<br>
<input type="radio" name="other"/> other
<br>
<br>
<label>
phone:
</label>
<input type="text" name="country code" value="+91" size="2"/>
<input type="text" name="phone" size="10"/> <br> <br>
Address:
<br>
<textarea cols="80"rows="5"value="address">
</textarea>
<br> <br>
Email:
<input type="email" id="email" name="email"/> <br>
<br> <br>
Password:
<input type="password" id="pass" name="pass"> <br>
<br> <br>
Re-type password:
<input type="password" id="repass" name="repass"> <br> <br>
<input type="button" value= "submit"/>
</form>
</body>
</html>
Result:
13. WRITE A PROGRAM TO DEMONSTRATE
IMPLEMENTATION OF CSS.
Inline CSS:
External CSS:
Internal CSS:
JAVASCRIPT
S.No Topic Page Sign And
No Remarks
1 Implementation of looping in JavaScript 44
Program to display Fibonacci: for loop
2 Program to display factorial of a number 45
3 Program to display Armstrong: while loop 46
4 Program to check whether the given number is 47
prime number: for loop
5 Program to check whether given year is leap year 49
INDEX
INTRODUCTION TO JAVASCRIPT
JavaScript is used mainly for enhancing the interaction of a user with the
webpage. In other words, you can make your webpage livelier and more
interactive, with the help of JavaScript. JavaScript is also being used widely in
game development and Mobile application development.
JAVASCRIPT HISTORY
The language was initially called LiveScript and was later renamed JavaScript.
There are many programmers who think that JavaScript and Java are the same.
In fact, JavaScript and Java are very much unrelated. Java is a very complex
programming language whereas JavaScript is only a scripting language. The
syntax of JavaScript is mostly influenced by the programming language C.
FEATURES OF JAVASCRIPT
APPLICATION OF JAVASCRIPT
Syntax:
Output:
Function Parameters
Function parameters are the names listed in the function definition.
10. Program to display implementation of Arrays in JavaScript
Array
An array is used to store a collection of data, but it is often more
useful to think of an array as a collection of variables of the same
type.
11. Program to Display Implementation of JavaScript String
JavaScript strings are used for storing and manipulating text.
Output:
12. Program to display implementation of JavaScript string
methods
JavaScript String charAt(index) Method
The JavaScript String charAt() method returns the character at the
given index.
The JavaScript math.round(n) method returns the rounded integer nearest for
the given number. If fractional part is equal or greater than 0.5, it goes to upper
value 1 otherwise lower value 0. For example, 4 for 3.7, 3 for 3.3, 6 for 5.9 etc.
Math.pow(m,n)
Math.abs(n)
The JavaScript math.abs(n) method returns the absolute value for the given
number. For example 4 for -4, 6.6 for -6.6 etc.
Math.ceil(n)
The JavaScript math.ceil(n) method returns the largest integer for the given
number. For example 4 for 3.7, 6 for 5.9 etc.
Math.floor(n)
The JavaScript math.floor(n) method returns the lowest integer for the given
number. For example 3 for 3.7, 5 for 5.9 etc.
JavaScript Math max() method
The JavaScript math max() method compares the given numbers and returns the
maximum value.
JavaScript Math min() method
The JavaScript math min() method compares the given numbers and returns the
minimum value.
JavaScript Events
The change in the state of an object is known as an Event. In html, there are
various events which represents that some activity is performed by the user or
by the browser. When javascript code is included in HTML, js react over these
events and allow the execution. This process of reacting over the events is
called Event Handling. Thus, js handles the HTML events via Event Handlers.
For example, when a user clicks over the browser, add js code, which will
execute the task to be performed on the event.
On Click Event
MouseOver Event
Keydown Event
Load event
15. Program to display implementation of external file in
JavaScript
16. Program to display implementation of date object
The JavaScript date object can be used to get year, month and day. You can
display a timer on the webpage by the help of JavaScript date object.
You can use different Date constructors to create date object. It provides
methods to get and set day, month, year, hour, minute and seconds.
New date()
(ii) Name the image in the property bar: this a reference for the imagemap
HTML, and is distinct from the alt and id attributes of an image.
RESULT:
5. Program to export data from table.
(i) Choose File > Export > Table.
3) In the window dialog box that appears after selecting Named Anchor, type in
"Bookmark" in the space provided, and select ok.
4) A Book type logo should then be inserted in the workspace area of
Dreamweaver which looks similar to the one show below.
5) Next scroll the cursor to the top of the screen and type in the same header
which you named your bookmark.
6) After typing the exact header of the corresponding bookmark highlight it and
will see a link window open towards the bottom of the screen. Select the little
navigation circle and hold it down then drag it to the bookmark want to link it
to.
FLASH
INDEX
Sno Particular Page Sign
. no
1 Introduction to Flash 94
2 Program to display Text Effects 95
3 Program to display Implementation of Looping -for, while, do 97
while
4 Program to display animation with flash and editing 98
5 Program to display Implementation of symbols and movie clips 99
6 Program to display implementation of grouping of shapes 100
7 Program to display implementation of 101
Factorial
Fibonacci
For loop
While loop
Do while
Output:
• Shape
tweening
Insert a shape
Insert keyframe
Create another shape
Output:
J