public function build($title = '', $description = '', $keywords = '')
    {
        // Build html root element
        $html = $this->create('html');
        $this->append($html);

        // Build head
        $this->head = $this->create('head');
        $html->append($this->head);

        // Setup head elements
        $this->setupHead($title, $description, $keywords);

        // Build body
        $this->body = $this->create('body');
        $html->append($this->body);

        return $this;
    }
public function build($title = '', $description = '', $keywords = '')
    {
        // Build html root element
        $html = $this->create('html');
        $this->append($html);

        // Build head
        $this->head = $this->create('head');
        $html->append($this->head);

        // Setup head elements
        $this->setupHead($title, $description, $keywords);

        // Build body
        $this->body = $this->create('body');
        $html->append($this->body);

        return $this;
    }
public function build ( $ title = '' , $ description = '' , $ keywords = '' ) { // Build html root element $ html = $ this -> create ( 'html' ) ; $ this -> append ( $ html ) ; // Build head $ this -> head = $ this -> create ( 'head' ) ; $ html -> append ( $ this -> head ) ; // Setup head elements $ this -> setupHead ( $ title , $ description , $ keywords ) ; // Build body $ this -> body = $ this -> create ( 'body' ) ; $ html -> append ( $ this -> body ) ; return $ this ; }
Builds the spine of the page.

@param string $title       The title tag of the page.
It is a required field for the document to be valid.
@param string $description The description meta value.
@param string $keywords    The keywords meta value.

@return $this
@throws Exception
@throws InvalidArgumentException
Builds the spine of the page .