In this article we will learn about some of the frequently asked HTML programming questions in technical like “how to use css” Code Answer’s. When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. Error or stack handling on html was simple and easy. An error message with filename, line number and a message describing the error is sent to the browser. This tutorial contains some of the most common error checking methods in HTML. Below are some solution about “how to use css” Code Answer’s.
external style sheet
xxxxxxxxxx
1
<link rel="stylesheet" type="text/css" href="mystyle.css">
how to link css to html
xxxxxxxxxx
1
<link rel="stylesheet" href="PathToYourFile.css">
how to write css in html
xxxxxxxxxx
1
<p style="color: blue; font-size: 46px;">
how to link css to html
xxxxxxxxxx
1
<link rel="stylesheet" href="file_name.css">
CSS IN HTML
xxxxxxxxxx
1
<!-- Styles can be inserted in html using <style></style> element -->
2
<style>
3
body {
4
background-color: cyan/*Color*/;
5
}
6
</style>
7
8
<!--CSS can also be linked using link tag in html
9
-the link tag is a self-closing tag-->
10
11
<link rel="stylesheet" type="text/css" href="filename.css"/>
how to use css
xxxxxxxxxx
1
<link rel="stylesheet" href="stylesheet.css">
2
<div class="mydiv"></div>
3
<style>
4
.mydiv {
5
background-color: /*Color*/;
6
color: /*Another color*/;
7
}
8
</style>