Lab 4
Lab 4
Objective(s):
Tool(s) used:
CSS:
CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be
displayed on screen, paper, or in other media. CSS saves a lot of work. It can control the
layout of multiple web pages all at once.
The most common way to add CSS, is to keep the styles in separate CSS files. However, here
we will use inline and internal styling, because this is easier to demonstrate, and easier for
you to try it yourself.
Inline CSS:
This example sets the text color of the <h1> element to blue:
Internal CSS:
An internal CSS is used to define a style for a single HTML page.
An internal CSS is defined in the <head> section of an HTML page, within a <style>
element:
External CSS:
An external style sheet is used to define the style for many HTML pages.
With an external style sheet, you can change the look of an entire web site, by
changing one file!
To use an external style sheet, add a link to it in the <head> section of the HTML
page.
CSS Fonts
Write a code in which Div tag is used with ID and Class and display given below page.
Internal style sheet will be used in this task.
Figure 04-1
Figure 04-2
Task 04. Time: 40 Minutes
Create given below web page structure using Div(id/class) and CSS.
Figure 04-3
Home Task. Time: 30 Minutes
Create given below page using CSS and forms.
Figure 04-4