The concepts of "goal" and "task" are often confused with each other. Their meanings are indeed in many ways similar, but they are not at all the same. You should look into the dictionaries to understand how these concepts differ.
The most complete and interesting definition of the first of the concepts is contained in the Small Encyclopedic Dictionary of Brockhaus and Efron. According to him, the goal is a representation that a person seeks to realize. In addition, it is assumed that this presentation will necessarily be carried out, and there are special means by which the desired will be achieved.
The goal is a product of the activity of will and consciousness, as well as a subjective a priori form of volitional motivation for action. Thus, at first, a person has a desire, an idea of something. After that, a person already determines whether this desire will remain a dream, or he will be able to fulfill it and make it his goal. This already leads to the choice of means to achieve it, as well as the drawing up of an action plan.
After drawing up the plan, small steps (actions) are thought out and prescribed, which in fact are the tasks carried out in practice. Fulfilling them, a person gradually moves towards achieving his goal.
Thus, a dream is an ordinary desire, and the goal is already a guide to a certain action. The goal must necessarily contain the time and resources that are needed to achieve it. Tasks also have timelines and resources. But the difference is that tasks are several unit activities, and the goal, as a rule, is one. For example, at first there is a desire to earn 1000 dollars a month, then a person sets himself a specific goal and time frame - to achieve such earnings in the next month. After that, he sets the tasks necessary to achieve the goal: choose the topic of the site and start developing it, allocate funds from his budget to pay for the work of third-party specialists, attract visitors to the finished site, etc.