Class

Class


A class may refer to any of the following:

  • In object-oriented programming, a class is a set of related objects that share common characteristics. Classes are an important component that makes object-oriented programming a powerful and flexible programming paradigm.

  • With CSS, a class is a selector used to specify a style on an HTML element. For example, the below class called center could be created to center text on a paragraph of text.

    CSS class code

    .center { text-align: center; }
    HTML

    tag with center class

    This text would be centered.



  • As can be seen in the above CSS code, every class needs a period in front of the name to be defined as a class. A line that does not begin with a period is considered an HTML tag selector and an id selector begins with a #.

    Note

  • Never start a CSS class with a number since not all browsers support class names beginning with numbers.

  • With an IP address, a class is a section or group of IP addresses. See our IP definition for a listing of each of the IP classes.

  • In a game, a class is a character based on abilities. For example, a warrior and mage are both examples of game classes. A warrior is often strong can withstand a lot of damage, but does not deal much. A mage is the opposite.


    What is an Operating System? » Computer Shortcut Keys and their Functions » Keyboard Function Keys » Computer Basics - Hardware - Software - Parts

    Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids
    - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories

    Proverb Stories
    Powerful Motivational Quotes for Students » Success Quotes » English Short Stories for Kids

    Cabin Crew Jobs & Career Advice » Secretary Job Description » Receptionist Job Description » Top 100 Interview Questions and Answers » How to Prepare for an Interview » How to Write a CV » How to Choose a Career » Computer Shortcut Keys and their Functions

    Scholarships in Australia » Scholarships in Austria » Scholarships in Belgium » Scholarships in Canada » Scholarships in Germany » Scholarships in Ireland » Scholarships in Italy » Scholarships in Japan » Scholarships in Korea » Scholarships in Netherlands » Scholarships in Switzerland » Scholarships in UK » Scholarships in USA

    Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories
    Proverb Stories
    Powerful Motivational Quotes for Students » Success Quotes »Scholarships in UK » Scholarships in USA Scholarships in UK » Scholarships in USA Scholarships in UK » Scholarships in USA Scholarships in UK » Scholarships in USA Scholarships in UK »

  • Click here to post comments

    Join in and write your own page! It's easy to do. How? Simply click here to return to Computer Basics FAQ.