Let $\mathcal{B}$ and $\mathcal{B}'$ be bases of topologies $\tau$ and $\tau'$ on a space $X$ respectively. Show that if each $B \in \mathcal{B}$ is the union of some members of $\mathcal{B}'$, then $\tau \subset \tau'$.
I have two solutions for this and I'm wondering if they're both correct.
Firstly if $O \in \tau$, then I think that by definition there exists $B \in \mathcal{B}$ such that $B \subset O$. And since $B = B_1 \cup B_2 \cup \dots$ for $B_i$'s in $\mathcal{B}'$ we have that $O \in \tau'$.
Second is that if $O \in \tau$, then by definition $O$ is the union of the basis elements $B_i \in \mathcal{B}$. But since each $B_i$ is the union of elements in $\mathcal{B}'$ the set $O$ must also be an union of elements of $\mathcal{B}'$ and thus by definition $O \in \tau'$.
I'm convinced that the second one is correct, but I don't know if the first one is right? Isn't it true by definition that for any open set of $X$ there is a basis element contained in it?