Web Development
Web Development
Web Development
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
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 stylesheets are stored in CSS files
CSS Syntax
<style>
<h1 style="color:blue;
body {
body { textalign:center;">
background-
background-
color: lightblue; This is a heading</h1>
color: linen;
} <p style="color:red;">
}
h1 { This is a paragraph.</p>
h1 {
color: navy; color: maroon;
margin-left: 20px;
margin-left: 40px;
}
}
</style>
CSS
CSS allows us to specify how to present (render) the document info stored in the
HTML.
features:
Colors: content, background, borders
Margins: interior margin, exterior margin
Position: where to put it
Sizes: width, height
Behaviour: changes on mouse over
What is JavaScript?
innerHTML. window.alert()
Output
document.write() console.log()
Comments in JavaScript
Two types of comments
◦ Single line
◦ Uses two forward slashes (i.e. //)
◦ Multiple line
◦ Uses /* and */
Hello World in JavaScript
<!DOCTYPE html>
<html>
<head>
<title>Hello World Example</title>
</head>
<body>
<script type="text/javascript">
<!--
document.write("<h1>Hello, world!</h1>");
//-->
</script>
</body>
</html>
THANK YOU