CSS Basics
Making bold the whole paragraph.
<p style="font-weight: bold;">This is a bold paragraph.</p>
Making a word italic.
This is the <span style="font-style:italic;">greatest</span> web page I’ve made yet.
Using an internal style sheet.
<!doctype html>
<html>
<head>
<title>Using an internal style sheet.</title>
<style type=”text/css”>
div {
font-weight: bold;
}
span {
font-style: italic;
}
</style>
</head>
<body>
<div>This is my web page.</div>
</body>
</html>
Using an external style sheet.
<link rel="stylesheet" type="text/css" href="path_to_style_sheet/style.css">
<p style="font-weight: bold;">This is a bold paragraph.</p>
Making a word italic.
This is the <span style="font-style:italic;">greatest</span> web page I’ve made yet.
Using an internal style sheet.
<!doctype html>
<html>
<head>
<title>Using an internal style sheet.</title>
<style type=”text/css”>
div {
font-weight: bold;
}
span {
font-style: italic;
}
</style>
</head>
<body>
<div>This is my web page.</div>
</body>
</html>
Using an external style sheet.
<link rel="stylesheet" type="text/css" href="path_to_style_sheet/style.css">
Comments
Post a Comment