Definition of Fasting

Literal meaning:To abstain from and avoid the consumption of a particular thing.
Fasting in the context of Shari’ah means:To worship Allah by abstaining from the ingestion of food, drinks and sexual intercourse from dawn until sunset.
This book will explain to you everything about fasting and its rules: https://www.al-feqh.com/en/why-do-muslims-fast