0

Why use css

27th Dec 2016, 5:43 AM
Vipul Aggarwal
Vipul Aggarwal - avatar
4 Answers
+ 5
When a browser displays a document, it must combine the document's content with its style information. It processes the document in two stages: The browser converts the markup language and the CSS into the DOM (Document Object Model). The DOM represents the document in the computer's memory. It combines the document's content with its style.The browser displays the contents of the DOM. A markup language uses elements to define the document's structure. You mark an element using tags, which are strings beginning with '<' and ending with '>'. Most elements have paired tags, a start tag and an end tag. For the start tag, place the element name between '<' and '>'. For the end tag, place a '/' after the '<' and before the element name. ----------- Use CSS to define styles for your documents, including the design, layout and variations in display for different devices and screen sizes. You can place your CSS in the <head> of a document with an embedded style sheet, or attach a separate file that defines your styles with an external style sheet. To link an external style sheet to your document, you'll simply add a link to the style sheet in the <head> of the document. An external style sheet has many advantages. Keeping the styles separate from your HTML content: Helps avoid duplicationMakes maintenance easierAllows you to make a site-wide change in one place. Dr.
27th Dec 2016, 9:54 AM
Tristan McCullen
Tristan McCullen - avatar
+ 1
To decorate your HTML webpage.
27th Dec 2016, 6:28 AM
Wen Qin
Wen Qin - avatar
+ 1
it allows for the separation of style and content
30th Nov 2018, 2:56 PM
Elian
Elian - avatar
0
it allows for the separation of style and content
29th Feb 2020, 7:12 PM
mt.ali
mt.ali - avatar