If print html code in php is correct?

class profil 
{
  private $database;
    
  public function __construct($database)
  {
   $this->database = $database;
  }
    public function display()
    {
    $id = $_GET('id');
    $sql = $this->database->connect()->prepare("SELECT id, first_name, last_name, age, avatar, birth_date, gender FROM users where id = :id");
     $sql->bindParam(':id',$id, PDO::PARAM_INT);
            $sql->execute();

          if($sql->rowCount())
          {
         while ($row = $sql->fetch())
         {
                    echo "<div class='bg-dark col-xl-4'>";
                        echo "<div class='row'>";
                            echo "<div>";
                                echo "<div class='mb-4'>Country:"."</div>";
                            echo "</div>";
                        echo "</div>";
                        echo "<div class='row'>";
                            echo "<div>";
                                echo "<div class='mb-4'>City:"."</div>";
                            echo "</div>";
                        echo "</div>";
                        echo "<div class='row'>";
                            echo "<div>";
                                echo "<div class='mb-4'>Age: "http://codereview.stackexchange.com/.$row("age'). "</div>";
                            echo "</div>";
                        echo "</div>";
                    echo "</div>";
                    echo "<div class='bg-info col-xl-4'>";
                        echo "<div class='row'>";
                            echo "<div>";
                                echo "<div><img src="https://codereview.stackexchange.com/.$row("avatar')." height='250px'  class='img-thumbnail' width='200px'></div>";
                            echo "</div>";
                        echo "</div>";
                        echo "<div class='row'>";
                            echo "<div>";
                                echo "<div class='gp' id='name'>"http://codereview.stackexchange.com/.$row("first_name'). " "http://codereview.stackexchange.com/.$row("last_name')."</div>";
                            echo "</div>";
                        echo "</div>";
                    echo "</div>";
                    echo "<div class='bg-danger col-xl-4'>";
                        echo "<div class='row'>";
                            echo "<div>";
                                echo "<div class='mb-4'Birth-date: "http://codereview.stackexchange.com/.$row("birth_date'). "</div>";
                            echo "</div>";
                        echo "</div>";
                        echo "<div class='row'>";
                            echo "<div>";
                                echo "<div class='mb-4'>Marital status: "."</div>";
                            echo "</div>";
                        echo "</div>";
                        echo "<div class='row'>";
                            echo "<div>";
                                if($row('gender')=='M')
                                {
                                    echo "<div class='mb-4'>Gender: Male</div>";
                                }else
                                {
                                    echo "<div class='mb-4'>Gender: Female</div>";
                                }
                            echo "</div>";
                        echo "</div>";
                    echo "</div>";
             }
      }
    }
 }