5th Lecture- WEB ENGINEERING basics.pptx

Aasma13 6 views 14 slides Apr 28, 2024
Slide 1
Slide 1 of 14
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14

About This Presentation

html slides


Slide Content

6 th lecture WEB ENGINEERING

CSS EXAMPLE body {background-color :#d0e4fe ;} h1 { color:orange ; text- align:center ;} p {font-family :"Times New Roman"; font-size:20px ;}

CSS Id The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is defined with a "#". <p id=“para1”>this is a paragraph</p> # para1 { text- align:center ; color:red ; }

CSS Class The class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements. This allows you to set a particular style for many HTML elements with the same class. The class selector uses the HTML class attribute, and is defined with a ".“ <p class=“center”>text</p> <p class=“center”>text</p> CSS CODE: . center {text- align:center ;} OR p.center {text- align:center ;}

CSS Background Background Color The background-color property specifies the background color of an element. body {background-color:#b0c4de ;} h1 {background-color:#6495ed;} p {background-color:#e0ffff;} div {background-color:#b0c4de;}

CSS Background Background Image The background-image property specifies an image to use as the background of an element . body {background- image:url ('paper.gif');}

CSS Text Text Color: body { color:blue ;} h1 {color:#00ff00;} h2 { color:rgb (255,0,0);}

CSS Text Text Alignment The text-align property is used to set the horizontal alignment of a text. Text can be centered, or aligned to the left or right, or justified. h1 {text- align:center ;} p.date {text- align:right ;} p.main {text- align:justify ;}

Text Decoration The text-decoration property is used to set or remove decorations from text . a { text- decoration:none ;} h1 {text- decoration:overline ;} h2 {text- decoration:line -through;} h3 {text- decoration:underline ;} h4 {text- decoration:blink ;}

Text Transformation The text-transform property is used to specify uppercase and lowercase letters in a text . p.uppercase {text- transform:uppercase ;} p.lowercase {text- transform:lowercase ;} p.capitalize {text- transform:capitalize ;}

CSS Font Font Style p.normal {font- style:normal ;} p.italic {font- style:italic ;} p.oblique {font- style:oblique ;} Font Size h1 {font-size:40px;} h2 {font-size:30px;} p {font-size:14px;}

Styling Links Links can be styled with any CSS property (e.g. color, font-family, background, etc.). Special for links are that they can be styled differently depending on what state they are in. The four links states are: a:link - a normal, unvisited link a:visited - a link the user has visited a:hover - a link when the user mouses over it a:active - a link the moment it is clicked

a:link {color:#FF0000;}       /* unvisited link */ a:visited {color:#00FF00;}   /* visited link */ a:hover {color:#FF00FF;}   /* mouse over link */ a:active {color:#0000FF;}   /* selected link */

HTML <frameset > <frameset cols="25%,*,25%">   < frame src ="frame_a.htm">   < frame src ="frame_b.htm">   < frame src ="frame_c.htm"> </ frameset>
Tags