What are Cascading Style Sheet? Name the different methods available for applying Style rules.
Answers
Explanation:
CSS can be applied to HTML or XHTML using three methods: linked, embedded, and inline
Answer:
CSS can be applied to HTML or XHTML using three methods: linked, embedded, and inline.
Explanation:
In method, the CSS is stored in a separate file, instead of directly in the HTML page. In the embedded method, CSS is stored as part of the HTML page, in the header section. In the inline method, CSS is stored directly in the style attributes of the HTML tags, as
<div style="font-
weight:bold">Bold Font</div>.
The neatest method is probably the linked one, but the other ones are convenient and quick in the phases of prototyping a web page. The embedded and inline methods do not require having a separate file. The inline method saves you the trouble of considering what CSS classes your document should have. For a larger site, in which many web pages share the same styling, and in which the styling should be customizable by the user, the linked method is the only viable option.