I remember when I was studying the notion of local connectedness, it meant that each point has "arbitrarily small" neighborhoods that are connected.
More precisely, one has the following definition:
Definition: A space $X$ is said to be locally connected at $x$ if for every neighborhood $U$ of $x$, there is a connected neighborhood $V$ of $x$ contained in $U$.
But right now when I am studying the definition of locally compact space, I thought that the definition should be the following: a space $X$ is said to be locally compact at $x$ if for every neighborhood $U$ of $x$, there is a compact neighborhood $K$ of $x$ contained in $U$.
However the definition in the book is a bit different: A space $X$ is said to be locally compact at $x$ if there is some compact subspace $C$ of $X$ that contains a neighborhood of $x$.
Can anyone explain to me please why there is such a distinction between definition of local connected space and local compact space?
And the definition in the book says "..contains a neighborhood of $x$". Does it mean that for any neighborhood $U$ of $x$, there is a compact subspace $C$ of $x$ such that $x\in U\subset C$. Am I right?