/ LJCPHPCodeDoc / LJCHTMLLib / LJCHTML / GetHTMLHead


Parameters
$textState - The current text state values.
$title - The page title.
$author - The author.
$description - The description.

Returns

The common HTML head elements.

Syntax

PHP
public static function GetHTMLHead(LJCTextState $textState, string $title = null
, string $author = null, string $description = null) : string

Gets the common HTML Head elements.

Example

PHP
 // Gets the main HTML Head elements.
 public static function GetHTMLHead()
 {
   // Root Method Begin
   $textState = new LJCTextState();
 
   // Example Method:
   $title = "The Title";
   $author = "John Q. Smith";
   $description = "The Description";
   $result = LJCHTML::GetHTMLHead($textState, $title, $author, $description);
 
   // result:
   // <title>The Title</title>r
   // <meta charset=\"utf-8\" />>
   // <meta name="description" content="The Description" />
   // <meta name="author" content="John Q. Smith" />
   // <meta name="viewport" content="width=device-width initial-scale=1" />
 }

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.