In a spacious mixing bowl, blend together the yellow cornmeal, all-purpose flour, baking powder, and salt. In a separate container, whisk the egg, milk, and finely chopped onion until fully combined. Gradually incorporate the wet mixture into the dry ingredients, stirring just until everything is moistened and a thick batter forms.