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
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:
- CSS stands for Cascading Style Sheets.
- 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.
- 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.
- 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.
- External stylesheet are stored in CSS files with extension .css
Similar questions