Introduction of HTML-2
Introduction of HTML-2
Introduction of HTML-2
Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
Web Browsers
The purpose of a web browser (Chrome, Edge, Firefox, Safari)
is to read HTML documents and display them correctly.
A browser does not display the HTML tags, but uses them to
determine how to display the document:
A table in HTML consists of table cells inside rows
and columns.
Example:
What is 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
•External style sheets are stored in CSS files
Why Use CSS?
CSS Example
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p{
font-family: verdana;
font-size: 20px;
}
CSS Syntax
<p>Hello World!</p>
<p>These paragraphs are styled with CSS.</p>
</body>
</html>
<h2>HTML Forms</h2>
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"
value="John"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname"
value="Doe"><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>