The question you've asked is difficult to answer because it is broad. An open set is a lot more concrete and intuitive in a metric space, where it is defined as some set $U$ so that for every point $x$ in $U$, there is a neighborhood (or an open ball) around $x$ that is completely contained in $U$. Think about picking any number in $(0,1)$. I assure you, that no matter what number you pick, I can find some teeny tiny neighborhood around that number that is still inside $(0,1)$. However, in $[0,1]$, if you pick $x=0$, then I simply cannot find a neighborhood around $0$ that is completely contained in $[0,1]$ (since I'd always have to include some teeny tiny negative number in that neighborhood).
An open set in a general topological space is a little bit harder to grasp for a beginner, though. Let $X$ be a set, and $\tau$ is a set of sets. Then $\tau$ is a topology if:
- $X$ and $\emptyset$ are in $\tau$,
- Any union of sets in $\tau$ are also in $\tau$,
- Any finite intersection of sets in $\tau$ are also in $\tau$.
Then we define everything in $\tau$ to be open sets.
In either event, a closed set is a set whose complement is open. (A much simpler definition :)
It's also important to note that sets can be open, closed, neither, or both! $(0,1)$, $[0,1]$, $[0,1)$, are open, closed, and neither (respectively). For an example that is both open and closed, consider the set of complex numbers. Its complement is the empty set, which is open (see $(1)$), and so the complex numbers are closed. But we also know $\mathbb{C}$ is open in $\tau$ by $(1)$. So it is both open and closed.
The idea to take home here is that the concept of an open set can be anything. It's a relative term. It's like how time is relative, and depends on your frame of reference.