In an example, the textual extraction application 106 may select the first textual element 402 and the second textual element 404 based upon an angle 412 between the first textual element 402, the second textual element 404, and an axis 410 despite the fact that the sixth textual element 404 is located at a different position than the second textual element shown in FIG. 3. In another example, the textual extraction application 106 may select the seventh textual element 406 and the eight textual element 408 as the seventh textual element 406 and the eight textual element 408 are within the distance range 328 described above. Notably, the textual extraction application 106 selects the seventh textual element 406 and the eight textual element 408 despite the fact that positions of the seventh textual element 406 and the eight textual element 408 are different from positions of the third textual element 324 and the fourth textual element 326, respectively, and despite the fact that the identifiers for the classes comprise four digits instead of three digits.