Federal laws are bills that have passed both houses of Congress, been signed by the president, passed over the president's veto, or allowed to become law without the president's signature. Individual laws, also called acts, are arranged by subject in the United States Code. Regulations are rules made by executive departments and agencies, and are arranged by subject in the Code of Federal Regulations.
The United States Code is a compilation of most public laws currently in force, organized by subject matter into 50 titles. The U.S. Code collates the original law with subsequent amendments, and it deletes language that has later been repealed or superseded. Compilations of laws are collections of individual acts in their current, amended form with cross-references to the United States Code for ease of use. Legislative measures that have been introduced in Congress but have not become law are known as bills.
Compilations of Laws (loc.gov)
The Code of Federal Regulations (CFR) is a codification of the general and permanent rules published in the Federal Register by the executive departments and agencies of the federal government. The Federal Register is published every business day by the National Archives and Records Administration ( NARA ). It contains federal agency regulations; proposed rules and notices; and executive orders, proclamations, and other presidential documents.
State Legislature Web Pages (Congress.gov)