Sie sind auf Seite 1von 15

Lab exercise

--------------------------------------------------------
Write HTML code for the following output :
1-
2-

3- Note: the color of heading is red and the color of paragraph is blue
4-
5-Note border =6 cellpading =5
6-border = "3" width = height = "150" "400" bordercolor = "blue

background color = "yellow"


7- create a Html page and devid it into two page using frame

8-Write HTML with proper (inline-Embedded-External) CSS that format the


following output

Format:

body ( font family : arial , text-align :center , background-color : pink , border-style :solid)

Div background-color:gray; margin-left:350px; width:50%;

p color :green;font-size:15pt

h1 color:blue; text-decoration:underline;font-size:25pt)
‫ للثالث طرق‬3 ‫الحل يف مراجعة السكند‬
9-note the color of border is red and blue
10-use Emedded style sheet
Apply the following attributes

background-image(no repeat , position right top, margin-right: 200px )

h1(color:lightblue)

p(color:gray,font-size:15pt )
11-use inline style sheet

12-write a javascript code in html page that read a number and compute its
square using function
13-write a Javascript code in html page that read two numbers and compute
their sum . And write the result in html page
14-write a Javascript code in html page that read two numbers and compute
their Difference . And write the result in html page
15-write a Javascript code in html page that sum even integer from 2 to 100
using for loop?

16-write a javascript code in html page that read two numbers and find
the maximum?
17-Write a JavaScript code that read user name and print it in welcome
page?