"It was an honor to wear that hat," Washington center fielder Ryan Church said after his team's 6-4 loss. "Our thoughts and prayers go out to the victims and their families."
Nationals players wore a few different versions of the hats; most were burgundy with "VT" in orange or white. Manager Manny Acta, pitching coach Randy St. Claire and other coaches wore white "VT" caps with burgundy stitching.
Left fielder Chris Snelling's cap will be sent to the Hall of Fame in Cooperstown, N.Y., while Acta and some players autographed their hats, which will be sent to Virginia Tech.
"The Nationals have you in our hearts and in our prayers," relief pitcher Chad Cordero wrote above his signature.
The Nationals said the idea of wearing the Virginia Tech caps came from a fan from Calvert County, Md., who e-mailed team president Stan Kasten.
"When I read it, I thought, 'Wow. This is really nice,'" Kasten said. "It was the very least we could do."
He said the team ran the tribute past Major League Baseball beforehand and commissioner Bud Selig and chief operating officer Bob DuPuy "were instantly supportive."
The Nationals held moments of silence for the victims of Monday's shooting before their home games Monday and Tuesday. Washington's RFK Stadium is a drive of about 4 hours from the university's Blacksburg campus.
"This happening in our backyard, we're more sensitive to this than anybody," Kasten said.
Nationals third baseman Ryan Zimmerman is from Virginia Beach and went to college at Virginia Tech rival Virginia.
"It was special, especially for me, them kind of being the school we always wanted to beat, more than anybody else," Zimmerman said. "It kind of shows you how little sports mean. ... It makes you realize how lucky we have it and not to take any days for granted."