A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 132
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 294
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 168
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 237
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 317
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 358
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 282
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 294
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 304
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 314
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 315
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 316
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 317
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 375
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: drivers/Session_files_driver.php
Line Number: 108
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_start(): Session cannot be started after headers have already been sent
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /home/u648970804/domains/tutiongo.com/public_html/application/controllers/Tutorials.php
Line: 7
Function: __construct
File: /home/u648970804/domains/tutiongo.com/public_html/index.php
Line: 315
Function: require_once
HTML Elements | Tutiongo
HTML Elements
An HTML element is defined by a start tag, some content, and an end tag.
HTML Elements The HTML element is everything from the start tag to the end tag:
<tagname>Content goes here...</tagname>
Examples of some HTML elements:
<h1>My First Heading</h1> <p>My first paragraph.</p> Start tag Element content End tag <h1> My First Heading </h1> <p> My first paragraph. </p> <br> none none
Nested HTML Elements HTML elements can be nested (this means that elements can contain other elements).
All HTML documents consist of nested HTML elements.
The following example contains four HTML elements (<html>, <body>, <h1> and <p>):
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
Try it Yourself
Example Explained The <html>
element is the root element and it defines the whole HTML document.
It has a start tag <html>
and an end tag </html>
.
Then, inside the <html>
element there is a <body>
element:
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
The <body> element defines the document's body.
It has a start tag <body> and an end tag </body>.
Then, inside the <body> element there are two other elements: <h1> and <p>:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
The <h1> element defines a heading.
It has a start tag <h1> and an end tag </h1>:
<h1>My First Heading</h1>
The <h1> element defines a heading.
It has a start tag <h1> and an end tag </h1>:
<p>My first paragraph.</p>
Never Skip the End Tag Some HTML elements will display correctly, even if you forget the end tag:
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
Try it Yourself
However, never rely on this! Unexpected results and errors may occur if you forget the end tag!
HTML is Not Case Sensitive HTML tags are not case sensitive: <P> means the same as <p>.
The HTML standard does not require lowercase tags, but Tutiongo recommends lowercase in HTML, and demands lowercase for stricter document types like XHTML.
HTML Tag Reference Tutiongo tag reference contains additional information about these tags and their attributes.
Tag Description <html> Defines the root of an HTML document <body> Defines the document's body <h1> to <h6> Defines HTML headings