Computer Science, asked by vnamugade2412, 10 months ago

Explain the in line method of applying css​

Answers

Answered by Anonymous
88

CSS allows us to apply a style on one HTML element at a time using "style" tag. The in line method of applying CSS is quite easy and more reliable and error less. Because, In this method, The CSS is applied on the HTML paragraph or document on specific line.

Generally, we use style method to apply CSS. Suppose, We have to apply CSS on HTML paragraph. And suppose we have to apply red color on the paragraph. So, we can write it as a:

<p style="color: red;" > This is paragraph written with inline CSS. </p>

In the given example, We have used in line method for applying CSS on the HTML. After giving the paragraph tag, we have to simply write the "Style=" and effect that we have to apply on it. Inline CSS is very helpful to preview instant changes and errors in codes. We must know that, Inline CSS always override the CSS internal and external properties. Hence, while in-lining the CSS, we must take account of internal and external CSS.

  • Inline CSS is for short documents like paragraph, article, heading etc. For other, we must consider the internal or external styles and methods.
  • "Style" is the element which attributes or applies the property to a document.
  • If we use the inline CSS for all webpage, then the codes may become more lengthy.
  • Inline CSS helps to optimize the website reliability and performance.

Extra information about CSS:

CSS or Cascading style sheet is a style sheet programming language used for describing a markup language and making HTML webpage more effective and reliable. By applying CSS on HTML, we can easily give better and more effective look to our website. In short, CSS is a makeup language which helps us to make the HTML web-pages more attractive. CSS was first used in year 1996 for styling the sheets of web pages.

Answered by gauravarduino
3

Explanation:

Inline CSS allows you to apply a unique style to one HTML element at a time. You assign CSS to a specific HTML element by using the style attribute with any CSS properties defined within it. In the following example, you can see how to describe CSS style properties for an HTML <p> element in the same line of code.

Similar questions