A for loop requires three parts separated by semicolons: initialization, condition, and increment. Option B correctly shows this structure: i=0 initializes the counter, i<=5 is the condition, and i++ increments after each iteration. Options A, C, and D are missing required parts or use incorrect syntax.