हिंदी

Write any two differences between the Outline and Border-style properties of CSS.

Advertisements
Advertisements

प्रश्न

Write any two differences between the Outline and Border-style properties of CSS.

अंतर स्पष्ट करें
Advertisements

उत्तर

Different between Outline and Border:

Outline Border
The outline is a line that is drawn around elements (outside the borders) to make the element "stand out". The border properties of an element allow you to specify the style and colour of its border.
We can't specify if individual sides should have an outline or not. Individual side borders can be styled, and a border radius can be specified.
shaalaa.com
Cascading Style Sheets in HTML
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2021-2022 (March) Official Term 2

संबंधित प्रश्न

State whether the following statement is True or False.

.cs is the extension of CSS file.


CSS types are ______, ______ and ______.


Types of floating properties are ______, ______, ______.


Write a program using html with following CSS specification -

  1. The background color of the company name should be green.
  2. The text color of the company name should be red.
  3. The heading should be large with font "comic sans ms"
  4. The description of the company should be displayed in blue color in a paragraph.

Write HTML5 code with CSS as follows -

  1. To create form to accept name, age, email address, from the user.
  2. Create a submit button to send the data.
  3. The heading of the form should have a background color and a different font style.

What type of CSS is the following code snippet?

<h1 style="color:blue;">A Blue Heading</h1>

Write an external CSS code snippet to set all four margins of the body tag with 5px each.


Write an inline CSS code to set the background color for the first level heading as 'green' containing the text "My CA Exam".


Write the equivalent CSS code to set the following styles for a web page:

  1. The entire page's background color should be yellow.
  2. Second-level Heading properties should be as follows:
    • The text color should be Red.
    • Left margin should be 25 px.

  1. Write a CSS code to display the first level heading text as "My School" in Green color and center-aligned.
  2. Write the CSS code to display the following paragraph below the above-mentioned heading:
    This is my School
    I study in class 12
    The properties of the paragraph content should be as follows:
    (I) Text color should be yellow
    (II) Font size should be 25 px
    (III) Font style should be bold

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×