title: where should I write html codes in php oop
body: <p>I have a (has a) relationship. an Article class has a Writer class.
  one thing that I could not figure that out is the HTML code where should be written?</p>
  
  <p>lets assume that we want to show the result in following blocks:</p>
  
  <pre><code>&lt;div id="article_block"&gt;
    &lt;h1&gt;Article Title&lt;/h1&gt;
    &lt;p&gt;Article content&lt;/p&gt;
    &lt;div id="writer_block"&gt; writer name: &lt;a href="writer_id"&gt; Writer Name &lt;/a&gt; &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>should I create the #writer_block in Writer class and create #article_block in Article class, and mix them in Article class? what should I do, please help, I search a lot but nowhere mention that.
  if there are issues with my perspective please do not tell me "don't reinvent the wheel". I don't try to do that, I just don't know the way, as I am new in OOP.<br></p>