When a foul, specifically a direct free kick offense, is committed by a defender, against an attacker, in the penalty area.
A direct free kick awarded from 12 yards in front of the goal would be within the penalty area. It would have to be a kick awarded to the defense, because if a defender had committed a direct free kick offense at that location the restart would, instead, have been a penalty kick for the attackers.
Yes. An indirect free kick, for either team, may be awarded within the penalty area. Only the defense may be awarded a direct free kick in the penalty area.
There are penalty kicks in soccer. A penalty kick is awarded when a defender commits a direct free kick offense while within his own penalty area.
If the penalty was successful, then no goal is awarded and the kick is retaken. If the penalty was not successful, then no goal is awarded and an indirect free kick is awarded to the defense. They will not get a 2nd shot at the goal because their own player infringed.
"Foul" is a term used to describe an offence punishable by a direct free kick. If a defender fouls an attacker in the defender's penalty area then a penalty kick is the prescribed restart. There's a loophole in your question. What if the attacker fouls the defender in the defender's penalty area? A direct free kick is awarded to the defense.
A direct free kick is awarded when someone commits a penal foul: handling the ball, tripping or attempting to trip, striking or attempting to strike, kicking or attempting to kick, jumping at, charging, or pushing an opponent. The ball is placed at the spot of the foul, and a player on the offended team takes the kick. The ball is in play when it is kicked and moves. If a direct free kick is awarded within the kicking team's own goal area, the ball may be placed anywhere in the goal area for the kick (similar to positioning for a goal kick). If a direct free kick is awarded within the kicking team's own penalty area (including the goal area), the ball is not in play until it is kicked directly out of the area. If the direct free kick is awarded in the offending team's penalty area, a penalty kick is awarded instead.
Three types of kicks in soccer are penalty kick, free kick, and corner kick. A penalty kick happens when a foul is committed in the penalty area, a free kick is awarded after a foul outside the penalty area, and a corner kick is given when the defending team plays the ball over their own goal line.
A foul does not have to be near the ball. A foul must occur (1) by a player, (2) on the field of play, (3) against an opponent, and (4) while the ball is in play. If the foul you describe is by a defender, against an attacker, in the defender's penalty area then play is stopped and a penalty kick awarded. Depending on the severity, it could also be misconduct.
An indirect free kick may be awarded in the penalty area. It is not promoted to a penalty kick. If it is in the goal area, the kick location must be moved away from the goal line to the top of the goal area (6 yards out).
For deliberate handling, a direct free kick is awarded to the opposing team.
When a player commits a foul in his own penalty area (the one surrounding the goal that he is protecting), such as pushing an opponent, a penalty kick is awarded to the attacking team, unless advantage is played. In some places, very young players do not use penalty kicks, such as U-8 games in the United States, and sometimes all free kicks are indirect.
What I think you meant is, "what is the penalty for deliberately handling the ball?" If it is deemed to not be deliberate, then there is no offense. If a player deliberately handles the ball the other team is awarded a direct free kick at the location of the infraction. If it's done by a defender inside the defender's penalty area then a penalty kick would be awarded instead.