MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Where in the HTML document is the correct location to insert code to link to your external CSS?
A
In the <head> section
B
In the <body> section
C
At the very end of the document
D
At the very beginning of the document
Explanation: 

Detailed explanation-1: -Each HTML page must include a reference to the external style sheet file inside the <link> element, inside the head section.

Detailed explanation-2: -The <style> element must be included inside the <head> of the document. In general, it is better to put your styles in external stylesheets and apply them using <link> elements.

Detailed explanation-3: -The <link> tag defines the relationship between the current document and an external resource. The <link> tag is most often used to link to external style sheets or to add a favicon to your website.

There is 1 question to complete.