For a practical example, I've attached a chart which may help illustrate this S/R business.
There are dozens of swing points in this chart, thousands with a shorter bar interval, but these are enough for the illustration.
Note at 1 that price reverses. You don't know why. Doesn't matter. But it reverses, making a swing point. It's not support. Not yet. Just a reversal due to changes in the balance between buying pressure and selling pressure. At 2, however, this level now becomes support. Ditto for 3 and 4 re resistance.
When this R is penetrated, a new swing point is created at 5, though it's not yet R; it's just a swing point. At 6, that old R level is tested and now becomes S. When price balks at 7, that level now becomes R.
More later.
Edit: Note that S is "broken" at 8. However, price quickly rebounds above this level, confirming its importance. When price is unable to reach R, suggesting less buying pressure, breaking this line again generates more of a selloff. The line is broken again to the upside, re-confirming the importance of this level, and when selling pressure gains the upper hand for the third time, a substantial selloff ensues, down to 10. Buyers love this level, tho, and push price all the way back to 11. The next day, this carries implications for the move to 16.
Another edit:
There are maxims that we come to believe as though they were principles, or even laws, though they barely qualify as guidelines.
For example,
S once breached becomes R, and vice-versa.
Buy S, sell R.
The more a given level is tested, the stronger it is.
Big volume on breakouts or breakdowns is good (assuming you're on the correct side of the trade).
And so on.
However, in order to determine whether or not any of this is true, one has to go back to the point where these old reliables gained currency.
That could take a great deal of time, however, and probably wouldn't be of much interest, much less practical use.
So for now, perhaps we could settle on the concept that S and R represent those levels at which one can expect to find profitable trades. Unfortunately, it's next to impossible to determine in real time whether those profits are to be found on the short side or the long side. The idea that S, for example, becomes stronger the more it's tested does not bear close scrutiny. In fact, if S has been tested twice and price returns there yet again, sellers assume that there's a reason and they prepare to short that return. Some have created yet another maxim -- Third Time's The Charm -- but this doesn't stand up under close scrutiny either. As with everything else, it just depends.
So what does one do at these so-called S/R levels? As Mark Douglas counsels, "be available". Don't assume one side of the trade or the other, but be prepared to take either.