title: SPWeb.Webs, Site vs SubSite
body: <p>I am confused between <code>SPSite</code>, <code>SiteCollection</code>, and <code>SPWeb</code>?</p>
  
  <p>So my understanding is this pseudo code: </p>
  
  <pre><code> http://My_server &gt;&gt;&gt; TOP Level SIte or SPWEbApplication
   http://My_server/My_site &gt;&gt;&gt;&gt; Site Collection or SPSite
  </code></pre>
  
  <p>Now a site under <code>SPSite</code> that will be referenced through <code>SPWeb</code>. So what are we getting when using <code>SPWeb.Webs</code>? </p>
  
  <p>What is a Subsite?</p>
  
  <hr>
  
  <p>Test code:</p>
  
  <pre><code>SPWeb mySite = SPContext.Current.Web;
  SPWebCollection sites = mySite.Webs;
  
  foreach (SPWeb subSite in sites)
  {
      Response.Write(SPEncode.HtmlEncode(subSite.Title) + "&lt;BR&gt;");
  }
  </code></pre>