DOCTYPE HTML
DOCTYPE HTML
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="bb.css">
</head>
<style>
h1 {
background-color: peru;
}
* {
color: brown;
}
</style>
<body>
<h1>why im handsome</h1>
<ol>
<li style="color: darkred; font-size: 30px;"> im handsome</li>
<li style="text-align: center; text-decoration: line-through;">im
handsome</li>
<li>im sooo handsome</li>
</ol>
<ul>
<h1>all of my guys say na me be party animal</h1>
<li class="yardies">this yardies telling me dance</li>
<l1 style="background-color: pink;">shii i should have just flung
my shoulder</li>
<li style="font-size: 30px; font-weight: 900;">079 hand it
over</li>
<img src="" alt="">
</ul>
</body>
</html>
Home work
1. CSS Tags:
CSS (Cascading Style Sheets) is a style sheet language used to
describe the presentation of a document written in a markup language
like HTML. CSS tags are used to apply styles to HTML elements and
control the layout, appearance, and behavior of web pages.
/* Text Indent */
p {
text-indent: 2em;
}
/* Text Decoration */
a {
text-decoration: underline;
}
/* Font Style */
h1 {
font-style: italic;
}
/* Text Transform */
h2 {
text-transform: uppercase;
}
/* Background Image */
body {
background-image: url("background.jpg");
background-repeat: no-repeat;
background-size: cover;
}
Remember that these are just a few examples of the many CSS properties
available. CSS provides a wide range of options for styling and manipulating
the appearance of web pages.
Selector
Type---> name of tag e.g p,b,div
Class--->.
Id- #
Universal-*
Selector-name:psudoclass{
Property:value
}
E.g{
Background-color:black
}
BLOCK ELEMENTS
BLOCK ELEMENT
These include;
p,div,form,h1,h2,h4,h3,h5,ol,ul,section,
men
Semantic tags:
Section,header,footer,nav,main
Inline elements
Span,anchor(a),italics(i),image