Sex offenders who prey on children would be subject to stringent monitoring requirements and face new mandatory penalties under a bill, passed by the House, that was expanded to include protections for gay men and lesbians under federal hate crime law.

The House voted 371 to 52 yesterday in favor of the Children's Safety Act, which, among its many provisions, creates a national Web site for child sex offenders and stipulates that sex felons face up to 20 years in prison for failing to comply with registration requirements.

Unexpectedly, the House voted 223 to 199 in favor of an amendment by Rep. John Conyers Jr. (D-Mich.) that expands current hate crime law to include some crimes involving sexual orientation, gender and disability. Under current law, the federal government assists local and state authorities prosecuting limited types of crimes based on the victim's race, religion or ethnic background.

The House has been the chief obstacle in numerous previous attempts to expand hate crimes law, and Joe Solmonese, president of the Human Rights Campaign, the nation's largest gay rights group, said it was an "incredibly historic vote" that could give momentum to similar action in the Senate.

The sex offender bill, which also requires felony offenders to register for life and authorizes the death penalty for sex crimes resulting in the killing of a child, responds to what House Judiciary Committee Chairman F. James Sensenbrenner Jr. (R-Wis.), said was a "national crisis" in child sex offenses. He said that of about 550,000 convicted sex offenders in the nation, the whereabouts of 100,000 are unknown.

Sensenbrenner said the legislation would get favorable treatment in the Senate. The White House expressed support, saying that even though sex crimes against children have declined significantly in recent years, more needs to be done. It noted that the legislation codified the online National Sex Offender Public Registry that the Justice Department launched earlier this year.

The legislation brings together parts of numerous proposals to protect children from sex offenders.