logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the purpose of pseudo-elements?


  • Correct Answer
  • Pseudo elements allow the use of the part of element and not the element itself They are applied to block level element, which is used for the complete block for which the CSS is being written This allow the subpart of an element to be styled like paragraphs and headings For example: selector:pseudo-element {property:value;} p: first-line {text-transform: lowercase;} It adds the style to the first line of the code in the paragraph 


  • Technology problems


    Search Results


    • 1. What is the difference between class selector and ID selector?
    • Discuss
    • 2. What are the rules in CSS ruleset?
    • Discuss
    • 3. What is the use of CSS sprites?
    • Discuss
    • 4. What is CSS selector?
    • Discuss
    • 5. What are different ways to integrate a CSS into a Web page?
    • Discuss
    • 6. What is the use of Media Types in CSS?
    • Discuss
    • 7. What are the advantages of the external over inline style methods?
    • Discuss
    • 8. JavaScript vs. Jscript
    • Discuss
    • 9. What is the difference between Client side JavaScript and Server side JavaScript.
    • Discuss
    • 10. Where are cookies actually stored on the hard disk?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment