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 Css # Apa Itu Css?
Deretcode
English | Bahasa
Tutorial Lengkap Belajar Css # Apa Itu Css?
Ketika kita sudah berhasil membangun sebuah halaman web menggunakan html. Tahap selanjutnya adalah kita mendekorasi halaman tersebut agar lebih menarik untuk dilihat. Disinilah css berperan dalam merekontruksi tampilan dari halamn web serta membuat halaman tersebut terlihat rapi ketika di buka di berbagai ukuran layar. Css akan mengatur tataletak elemen, ukuran elemen, warna teks, latarbelakang dan lain sebagainya.
Gambar di atas adalah contoh jika kita membuat web tanpa css, tidak ada struktur, tata letak tidak rapi dan tidak ada desain yang sama sekali.
advertisement
Oleh karena itu, mempelajari css adalah hal yang wajib setelah kita menguasai html. Pada kesempatan kali ini kita akan belajar bagai mana mendesain html dengan menggunakan css.
Baik mari kita mulai dengan pertanyaan,
Apa Itu CSS?
Css adalah singkatan dari Casecade Style Sheet , sebuah aturan yang ditulis untuk mendesain halaman web sehingga terlihat rapi dan terstruktur.
Sama seperti halnya html , css juga tidak termasuk bahasa pemrogramman karena fungsinya yang hanya mengatur komponen html.
Css akan mendekorasi tata letak dari sebuah element html, mengatur lebar dan tinggi dari element, mengatur fonts, memberikan warna pada teks, mengatur latar belakang dan lain sebagainnya.
Tools Yang Digunakan Untuk Menulis Kode Css
Seperti halnya html, tools yang digunakan untuk menulis kode css hanyalah text editor dan web browser. Tidak ada IDE khusus yang perlu kita install, cukup notepad dan EI kita sudah bisa menulis kode css. Untuk saya sendiri, saya lebih sering menggunakan notepad ++ dan visual code. Kemudian untuk browser, usahakan menggunakan versi yang terbaru.
Cara Membuat Kode Css
Css memiliki format penulisan yang harus kita ikuti agar kode yang kita tulis dapat di eksekusi oleh browser dan diimplementasikan pada element html.
advertisement
Format penulisan css ditunjukan pada gambar berikut,
Penjelasan:
Selector digunakan untuk memilih element yang ingin kita atur propertinya, selector bisa berupa tag element ataupun atribut element (berupa id, class dan lainya).
Properti adalah variable-variable dari element yang bisa kita atur nilainya seperti color, font, background, border, margin dan lain sebagainya.
Nilai properti adalah nilai yang kita berikan pada properti tertentu.
Block style adalah satu blok kode css untuk satu selector
Cara Mengimplementasikan Css Kedalam Dokumen Html
Untuk mengimplementasikan kode css, ada tiga cara yang bisa kita lakukan yaitu dengan menautkan css dari luar (Eksternal Css), menyisipkannnya di dalam dokumen html (Internal Css) dan langung mendeklarasikan di element html pada attribute style (inline).
Menautkan Kode Css (Eksternal Css)
Menautkan css adalah cara dimana kita memisahkan kode css dari kode html. Css yang kita buat di tulis pada file tersendiri dengan format type .css .
Cara ini sangat direkomendasikan karena kode css terpisah dari kode htmlnya, sehingga kode menjadi lebih rapi dan terstruktur. Dan berikut kelebihan dan kekurangan eksternal css,
Kelebihan Eksternal Css
Dokumen html menjadi lebih rapi karena tidak di sisipi kode css
Reusable atau css bisa di gunakan untuk halaman yang lain.
Ukuran file html menjadi lebih kecil
Css akan tersimpan di cache sehingga browser tidak harus terus terusan mendownload script cssnya ketika di muat ulang.
Kekurangan Eksternal Css
Jika css yang kita tautkan bersifat global atau di gunakan di berbagai halaman web dengan desain yang berbeda-beda, artinya ada banyak style yang di deklarasikan pada dokumen css tersebut, untuk menangani berbagai desain halaman. Ini mengakibatkan banyak kode yang tidak terpakai saat membuka halaman tertentu sehingga mengurangi efisiensi ketika load halaman web.
Ketika html gagal menautkan css, tampilan html menjadi berantakan seperti ketika tidak menggunakan css.
Cara membuat eksternal css
Buka text editor kalian, dan silahkan kalian tulis kode css berikut
body{
color:red;
background-color:#eaeae;
font-size:17px;
}
Simpan didalam folder yang sama dengan file html yang sudah dibuat dengan nama bebas dan tipe ektensi [.css ]
Buka file html kita dan di dalam tag head tulis kode berikut,
<link rel="stylesheet" href="[Nama File Css].css">
Contohnya seperti kode html berikut,
<!DOCTYPE html>
<html lang="id-ID">
<head>
<title>Belajar Eksternal Css</title>
<link rel="stylesheet" href="style.css">//Ini Kode Eksternal Css
</head>
<body>
<p>Belajar Eksternal Css</p>
</body>
</html>
Kita sudah berhasil membuat eksternal css dan mengimportnya kedalam dokumen html. Lalu gimana kalo file css ada di dalam sub folder?. Tinggal kita tambahkan nama folder di dalam attribute href nya, seperti berikut,
<link rel="stylesheet" href="[Nama Folder]/[Nama File Css].css">
Dan jika ada di luar folder html, kita bisa tambahkan "../", contohnya seperti berikut,
<link rel="stylesheet" href="../[Nama File Css].css">
Menyisipkan Kode Css (Internal Css)
Menyisipkan css atau embed css adalah cara dimana kita menuliskan kode css langsung pada dokumen html yang biasanya diletakan pada didalam blok tag " <head > ". Cara ini biasanya dilakukan ketika kode css yang ditulis hanya sedikit.
advertisement
Kelebihan Internal Css
Tidak perlu khawatir gagal memuat kode css karena css langsung di tulis di dokumen html
Css yang ditulis menjadi lebih optimal karena khusus menghandle halaman html yang berkaitan
Kekurangan Internal Css
Kode css tidak bisa di gunakan di halaman lain
Ketika kode css yang di sisipkan terlalu banyak, kode html menjadi berantakan dan ukuran file html menjadi lebih besar.
Cara membuat internal css
Untuk membuat internal css, kita menggunakan tag "style " dan kita sisipkan pada dokumen html.
Buka file html kalian
Didalam tag head kita buat tag style seperti berikut,
<style>
/*tulis kode css disini*/
</style>
Contoh kodenya seperti berikut,
<!DOCTYPE html>
<html lang="id-ID">
<head>
<title>Belajar Eksternal Css</title>
<style>
body{
color:#FFF;
background-color:#eaeae;
font-size:17px;
}
</style>
</head>
<body>
<p>Belajar Eksternal Css</p>
</body>
</html>
Attribute Style (Inline Css)
Cara yang ketiga adalah langsung mengatur style pada element yang dituju. Cara ini bisa kita lakukan ketika kita hanya ingin mengatur satu element saja beserta turunannya.
Kelebihan Inline Css
Lebih mudah dilakukan
Styling akan didahulukan
Kekurangan Inline Css
Dokument html akan terlihat berantakan
Cara membuat inline css
Untuk melakukan inline css kita hanya perlu menambahkan atribut style pada element yang ingin kita atur, kodenya seperti berikut,
style="color:#FFF;background-color:#eaeae;font-size:17px"
Contoh kodenya seperti berikut,
<!DOCTYPE html>
<html lang="id-ID">
<head>
<title>Belajar Eksternal Css</title>
</head>
<body style="color:#FFF;background-color:#eaeae;font-size:17px">
<p>Belajar Eksternal Css</p>
</body>
</html>
Selamat kamu sudah berhasil membuat css dengan tiga cara.
Tahap selanjutnya kita akan belajar rules cara penulisan selector atau keyword.
advertisement
Jika kalian merasa artikel ini bermanfaat silahkan klik tombol share dibawah. Jika ada hal yang ingin di tanyakan atau disampaikan silahkan tulis di kolom komentar,
Big thanks!
This website uses cookies to ensure you get the best experience on our website
learn more
Got IT!
Silahkan berkomentar dengan baik dan bijak!