Computer Science, asked by mayankpant53, 5 months ago

Which is correct code for import external CSS in the web page?


a) <link rel="stylesheet" type="text/css" href="myfirststyle.css">

b) <a href="stylesheet" type="css" refereence="myfirststyle.css">

c) <import="stylesheet" type="css" href="myfirststyle.css">

d) None of the above

Answers

Answered by anindyaadhikari13
5

Correct Question:-

  • What is the correct code for importing external CSS into web page?

Answer:-

The correct Code for importing external CSS into Web page is,

<link rel="stylesheet" type="text/css" href="myfirststyle.css"/>

Option a is the correct answer for this question.

Learn more:

  1. CSS stands for Cascading Style Sheets.
  2. It is a language which is used to style an HTML document. It tells/describes how HTML elements should be displayed on the web browser.
  3. The CSS codes for a HTML document can be written directly with the code or can be written in external file that can be embedded using <link> tag.
  4. CSS saves a lot of work. For example, if you want same layout for multiple web pages, you can write them in a single file and then embed it to all the web pages using <link> tag.
  5. External stylesheet are stored in CSS files with extension .css
Similar questions