what is mass, like kilograms and all that stuff, what types of grams are in mass?

Shut it -- please use a more acceptable screen name.

In science, mass is the amount of matter an object has. Newton's second law says that mass is the property of matter that determines the force required to impart a given acceleration to an object.

how do you measure mass?

Mass is the absolute amount of matter within an object. Weight is how much gravity is being put on an object and because of this, you would weigh less on the Moon than on Earth since there is less gravity. To measure mass you need to use the formula M = V*D or mass = volume times density. You can measure this by just putting an object on a scale since Earth has a gravitational pull of 1 G.

https://en.wikipedia.org/wiki/Gravity_of_Earth

As others above said, mass is a measure of the amount of matter, pretty much proportional to the number of protons and neutrons on your scale. It is the same on earth, moon, or wherever.
As was also said above, we usually measure "weight" which is mass times the acceleration of gravity, g. Force is expressed in Newtons and is the mass times acceleration.
The scientific unit of mass is a kilogram which is one thousand grams, one million milligrams.
On earth g is about 9.81 m/s^2
If you put a one kg mass on a scale on earth, the force measured is 9.81 Newtons. Of course the scale says one kg because it is only designed to work on earth. It really should say 9.81 Newtons.
In English units the force measure on earth is a pound. You divide that by about 32.2 ft/s^2 to get the mass in slugs.

Mass is a fundamental property of matter that quantifies the amount of material in an object. It is typically measured in units such as kilograms (kg), grams (g), or pounds (lb).

Grams are a commonly used unit of mass in the metric system. The metric system is based on powers of 10, which means that multiples and submultiples of units are conveniently related by factors of 10. For example, there are 1,000 grams in a kilogram, and 1 gram is equal to 1/1,000 of a kilogram.

To understand the different types of grams, let's explore the metric prefixes commonly used with grams:

1. Kilogram (kg): The kilogram is the base unit of mass in the metric system. It is equal to 1,000 grams, making it the largest unit in the gram-based system.

2. Hectogram (hg): The hectogram is equal to 100 grams. The prefix "hecto-" denotes a factor of 100.

3. Decagram (dag): The decagram is equal to 10 grams. The prefix "deca-" denotes a factor of 10.

4. Gram (g): The gram is the base unit of mass in the metric system, equivalent to the mass of one cubic centimeter of water at 4 degrees Celsius.

5. Decigram (dg): The decigram is equal to 0.1 (one-tenth) of a gram. The prefix "deci-" denotes a factor of 0.1.

6. Centigram (cg): The centigram is equal to 0.01 (one-hundredth) of a gram. The prefix "centi-" denotes a factor of 0.01.

7. Milligram (mg): The milligram is equal to 0.001 (one-thousandth) of a gram. The prefix "milli-" denotes a factor of 0.001.

These prefixes, along with the gram as the base unit, allow for flexible and convenient conversions between different scales of mass.

To convert between different grams, you can multiply or divide by the conversion factors associated with each unit. For example, to convert grams to kilograms, you divide by 1,000. To convert grams to milligrams, you multiply by 1,000.