Practice free →
HomeMaharashtra HSC Class 12 (Arts)informationtechnologyCascading Style Sheets in HTML5 › Which embedded CSS placement is correct in an HT…

Which embedded CSS placement is correct in an HTML document?

AInside <style> tags within <head>
BAnywhere in the document
CInside <html> outside <head>
DInside <body> after all content
Answer & Solution
Correct answer: A. Inside <style> tags within <head>
1. The Embedded stylesheet section gives placement rules. 2. 'It is written inside the style tag within head section of html.' 3. <style> tags placed in <head> apply to the whole document. 4. Inside <body> is not the documented best practice. _Source: Maharashtra Balbharati Std XII Information Technology, Ch 1 "Cascading Style Sheets in HTML5", §1.4 ¶2_
Solve this in the app — Maharashtra HSC Class 12 (Arts) practice & 24k+ MCQs →
Related questions