A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 102
Backtrace:
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 128
Backtrace:
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$benchmark is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$hooks is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$config is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$log is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$utf8 is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$uri is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$exceptions is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$router is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$output is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$security is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$input is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$lang is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$db is deprecated
Filename: core/Loader.php
Line Number: 397
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated
Filename: database/DB_driver.php
Line Number: 372
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$session is deprecated
Filename: core/Loader.php
Line Number: 1284
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 11
Function: library
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$dcphpmailer is deprecated
Filename: core/Loader.php
Line Number: 1284
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 11
Function: library
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$model is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 13
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$categories is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 15
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$postcat is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 19
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$comment is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 23
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$user is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 27
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$coderunner is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 32
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$toc is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 37
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$data is deprecated
Filename: controllers/Blog.php
Line Number: 39
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 39
Function: _error_handler
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$meta is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 42
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$load is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$state is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$userrole is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$user_id is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$benchmark is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$hooks is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$config is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$log is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$utf8 is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$uri is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$exceptions is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$router is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$output is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$security is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$input is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$lang is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$db is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$session is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$dcphpmailer is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$model is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$categories is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$postcat is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$comment is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$user is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$coderunner is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$toc is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$data is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$meta is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
Tutorial Lengkap Belajar Html # Apa Itu Element?
Deretcode
English | Bahasa
Tutorial Lengkap Belajar Html # Apa Itu Element?
Pada artikel sebelumnya kita telah belajar mengenal beberapa attribute html yang sering digunakan dalam membuat halaman web.
Pada artikel kali ini kita akan belajar mengenal apa itu element.
Sebelumnya kita telah sedikit menyinggung apa itu element pada pembahasan tag html.
advertisement
Kali ini kita akan membahas secara khusus mengenai element html itu sendiri.
Apa itu element html?
Element adalah sebuah area yang dibatasi oleh tag pembuka dan tag penutup.
Element mencakup tag pembuka, attribute, konten dan tag penutup.
Artinya satu pasang tag html (tag pembuka & tag penutup) sama dengan satu element html.
Element tidak hanya berisi teks saja, tapi element juga bisa berisi element lainnya.
Apa itu parent elemen(Element Induk)
Parent element adalah element yang membungkus element lainnya, seperti pada gambar diatas element dengan <span > membungkus element <h1 > dan <p >.
Apa itu child element (Elemen Anak)
Kebalikan dari parent elemen, child element adalah element yang berada di dalam element lainnya, contohnya seperti gambar diatas, yang menjadi child element adalah element <h1 > dan <p >.
Kenapa harus dibikin seperti itu?
Tujuannya untuk mengelompokan element-element html. Misalnya kamu ingin memisahkan element-element penyusun header, sidebar, konten dan footer. maka caranya adalah dengan membungkus element-element tersebut dengan element lainnya.
Dokumen html menjadi terlihat rapi dan terstruktur
Selain itu, ketika kita ingin memberikan styling, misalnya pada element penyusun content, kita tidak perlu memberikan styling pada semua element content tapi cukup pada parent elemennya saja.
Pada gambar diatas, secara otomatis element h1 dan article akan mengikuti element induknya (div ), memiliki warna later belakang merah.
Kesalahan dalam menulis element html
Element adalah sebuah area yang dibatasi tag pembuka dan penutup, artinya setiap kali kita membuat tag pembuka, kita wajib menutupnya.
Selalu pastikan huruf besar dan huruf kecil pada tag pembuka sama dengan tag penutup.
Element tidak boleh saling memotong dengan element lainnya(cross element)
Kesalahan-kesahan diatas dapat kita minimalisir dengan cara menggunakan teks editor yang mendukung autocomplete html, seperti notepad++, sublime, atom dan visualcode.
advertisement
Tinggal kalian aktifkan atau install plugin autocomplete htmlnya pada teks editor tersebut.
Element html yang tidak dapat berdiri sendiri
Ada beberapa element yang tidak dapat berdiri sendiri atau wajib dibungkus menggunakan element tertentu.
Dintarnya,
Child element
Parent Element
li
ul, ol
option
select, optgroup
optgroup
select
td, th
tr
tr
table, thead, tbody, tfooter
thead, tbody, tfooter
table
source
video,object,audio
dt,dd
dl
area
map
figcaption
figure
Sampai disini pembahasan kita tentang element html. Jika kalian merasa artikel ini bermanfaatkan, silahkan klik tombol bagikan dan jika ada pertanyaan atau ada hal yang ingin di sampaikan silahkan tulis di kolom komentar.
Good luck!
This website uses cookies to ensure you get the best experience on our website
learn more
Got IT!
Silahkan berkomentar dengan baik dan bijak!