Sedimentary rocks take their compositional elements from other sources that have been weathered to sediment, re-deposited, and re-solidified through compression and cementation. Sedimentary rocks generally have a layered appearance—as sediment is pressed and solidified by the overlying crust; the particles align themselves horizontal to the pressure.
There are three types of sedimentary rocks: clastic, chemical, and organic. Types of clastic sedimentary rocks such as conglomerate, sandstone, and shale, are composed of debris from weathered rock materials. Types of chemical sedimentary rocks such as rock salts and gypsums form as standing water evaporates and dissolved minerals are deposited. Types of organic sedimentary rocks such as coal and limestone form out of calcium, plant, and animal deposits that are buried and solidified before they have a chance to disintegrate.
You can tell sedimentary rocks at first glance if the constituent elements are “glued” together by a surrounding cement, or if the elements are of varying size, shape, and composition as opposed to simple mineral crystals.