On the kiddush of the festivals, we say the following:
דַּבֵּר אֶל בְּנֵי יִשְׂרָאֵל וְאָמַרְתָּ אֲלֵהֶם מוֹעֲדֵי ה’ אֲשֶׁר תִּקְרְאוּ אֹתָם מִקְרָאֵי קֹדֶשׁ אֵלֶּה הֵם מוֹעֲדָי
שֵׁשֶׁת יָמִים תֵּעָשֶׂה מְלָאכָה וּבַיּוֹם הַשְּׁבִיעִי שַׁבַּת שַׁבָּתוֹן מִקְרָא קֹדֶשׁ כָּל מְלָאכָה לֹא תַעֲשׂוּ שַׁבָּת הִוא ה’ בְּכֹל מוֹשְׁבֹתֵיכֶם – Speak to the Children of Israel, and tell them these are the Festivals that they shall keep holy. For six days, work may be performed, but on the seventh day, it is a complete rest day, a holy occasion; you shall not perform any work. It is a Sabbath to the Lord in all your dwelling places. (23:2,3)
Why is Shabbos inserted into the middle of the Festivals?
The Vilna Gaon explains that on all the Festivals certain types of food related activity are permitted, whereas on Shabbos all melachos are forbidden. However on one Yom Tov no melacha is permitted – Yom Kippur – which is also known as שַׁבַּת שַׁבָּתוֹן – the same terminology that the Torah uses for a regular Shabbos. Thus the pasuk can be rendered:
שֵׁשֶׁת יָמִים תֵּעָשֶׂה מְלָאכָה – On six days melacha is permitted – the first and last days of Pesach (2), one day Shavuos (3), one day Rosh Hashana (4), one day Succos (5), one day Shmini Atzeres (6).
וּבַיּוֹם הַשְּׁבִיעִי שַׁבַּת שַׁבָּתוֹן מִקְרָא קֹדֶשׁ כָּל מְלָאכָה לֹא תַעֲשׂוּ
However the seventh is the holy of holiest – no melacha is permitted – Yom Kippur!
