External Stylesheet

External Stylesheet


Create a .css file that contain the only css script anmd link it into .html or . php page based on requirement. 

<head>
<link type=”text/css” rel=”stylesheet” href=”css_filename.css”>
</head>
Example:
File name Style.css 

P
{
Color:red;
} 

Html file: 

<html>
<head>
<link type=”text/css” rel=”stylesheet” href=”style.css”>
</head>
<body>
<p>cs-tutorial is a best website for html tutorial</p>
</body>
</html>
Qus. 1 : Which tag is used to link an external style sheet to a webpage?

  1. <Link> tag
  2. <Style> tag
  3. <Script> tag
  4. @media
Qus. 2 : How do you add a comment in CSS

  1. <!-- Comment -->
  2. // Comment
  3. /* Comment */
  4. # Comment
Qus. 3 : What is not true about External Style sheet

  1. It is a separate document that contains CSS rules
  2. It separates content from the presentation but both are still contained in a single file
  3. It separates the content and style into separate files
  4. . It allows a web designer and a content author to work in parallel
Qus. 4 : Which tag is used to link an external CSS file?

  1. <link>
  2. <style>
  3. <script>
  4. <css>

Programs

Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad