Initial parsing of tags