Prog Lecture1
Prog Lecture1
html →
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<CENTER>
</CENTER>
My Third Paragraph</p>
<CENTER>
</CENTER>
<h1 style="text-align:center">This is heading 1</h1>
</body>
</html>
<!—prog2.html -->
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
display: block;
font-size: 2em;
margin-top: 0.67em;
margin-bottom: 0.67em;
margin-left: 20;
margin-right: 0;
font-weight: bold;
color:Tomato;
background-color:DodgerBlue;
}
p{
color:blue;
</style>
</head>
<body>
</body>
</html>
<!—prog3.html -->
<html>
<head>
</head>
<body>
<h1>I am formatted with a linked style sheet</h1>
<p>Me too!</p>
</body>
</html>
<!—styles.css -->
h1 {
display: block;
font-size: 1em;
margin-top: 0.67em;
margin-bottom: 0.67em;
margin-left: 20;
margin-right: 0;
font-weight: bold;
color:Tomato;
p{
color:blue;
}
<!—prog4.html -->
<!--The <a> tag defines a hyperlink. The href attribute specifies the URL of the page
the link goes to -->
<!-- The required alt attribute for the <img> tag specifies an alternate text for an
image, if the image for some reason cannot be displayed. This can be due to a slow
connection, or an error in the src attribute, or if the user uses a screen reader. -->
<br><br>
<br>
<br>
<br>
<br>
<br>
<html>
<body>
</body>
</html>