What is a subgraph, and what makes a subgraph spanning?
A subgraph $S$ of $G$ consists of some of $G$'s vertices and some of $G$'s edges, where every edge of $S$ joins two vertices of $S$. A spanning subgraph keeps all vertices of $G$ and may drop edges.
* Dashed parts belong to G but not to the subgraph. *
A subgraph has to be a graph in its own right, so it may not keep an edge whose end vertex it dropped. Within that rule any selection works: the left example keeps A, C and D with the three edges among them.
"Spanning" means reaching every vertex. A spanning subgraph is what remains after deleting edges only, never vertices: for example the roads still open in winter, when every village must stay in the network. Whether everything stays reachable is a separate question, connectivity, and the most economical connected spanning subgraph is a spanning tree.
Go deeper:
Glossary of graph theory: subgraph โ subgraph, spanning subgraph and induced subgraph, side by side.