Screwed or Threaded flanges are attached to the pipe like any other screwed fittings, and may be back-welded to seal the joint between pipe and flange.
Although still available in most sizes and pressure ratings, screwed fittings today are used almost exclusively in smaller pipe sizes and at low pressures.