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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Blog::$email is deprecated
Filename: core/Loader.php
Line Number: 1284
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 303
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 328
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 355
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 365
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 366
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 367
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 368
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 426
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: 137
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Blog::$form_validation is deprecated
Filename: core/Loader.php
Line Number: 1284
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Blog::$pagination is deprecated
Filename: core/Loader.php
Line Number: 1284
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Blog::$zip is deprecated
Filename: core/Loader.php
Line Number: 1284
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$email is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
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: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$form_validation is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$pagination is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$zip is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /www/wwwroot/SINHCOMS/VT/main/application/controllers/Blog.php
Line: 20
Function: view
File: /www/wwwroot/SINHCOMS/VT/main/index.php
Line: 160
Function: require_once
Vismrit Tech | Home Startup
Theresa Underwood
Sep 10, 2021
9 min to read
learn-html.org is a free interactive HTML tutorial for people who want to learn HTML, fast.
Images in HTML are inline elements that can be placed within a paragraph. To add an image, use the <
img
>
tag along with the src
attribute to specify the location of the image.
<img src="/static/img/code.jpg">
You may use JavaScript to trigger an event when an image finished loading.
<img src="/static/img/code.jpg" onload="alert('image loaded')">
Resizing the image can be done using the width and height attributes of an image, or alternatively by using CSS:
<img src="/static/img/code.jpg" width="100">
<img src="/static/img/code.jpg" style="width: 100px">
Having an "alt" attribute set for the image is useful for when an image could not load or when you want to add a tooltip description that will be displayed when hovering on top of an image.
<img src="/static/img/code.jpg" style="width: 100px" alt="A picture of some code">
Image Types There are three main types of image formats which you should be using.
Lossless formats - useful for when you need pixel-perfect graphics, for example for logos. The most common format is PNG. PNG also supports alpha transparency, meaning that you can use any background you want and overlay the image on top of that background. Lossy formats - useful for displaying rich images. Using a lossless format such as PNG would be an order of magnitude larger if used in such images. The most common format used in this category is JPG. Animated formats - useful for showing short animated images. The most common format is GIF, although it is a very old yet widely supported format, with many inherent drawbacks, such as a 256 color limit on each frame, and bad compression. Using the CSS float attribute with images Images can be set to float nearby text so they would blend with the text better. Notice the use of the clear
CSS attribute - which directs the browser to break the floating effect after the first paragraph.
<img src="/static/img/lab.png" style="float: left;">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p style="clear: both">Second paragraph</p>
Do it Yourself Add a image within the body, tag with the image "photo.jpg". Adjust size of img to 100px by 100px Add onload command, onload="alert('')" with the text "task complete"
Related Post
Demand generation is a constant struggle for any business. Each marketing strategy you employ has...
Learn more
Organic search has the potential to capture more than 40 percent of your gross revenue...
Learn more
Demand generation is a constant struggle for any business. Each marketing strategy you employ has...
Learn more
Sophie Asveld
February 14, 2021
Email is a crucial channel in any marketing mix, and never has this been truer than for today’s entrepreneur. Curious what to say.
Ariana Gerad
February 14, 2021
Email is a crucial channel in any marketing mix, and never has this been truer than for today’s entrepreneur. Curious what to say.
Sophie Asveld
February 14, 2021
Email is a crucial channel in any marketing mix, and never has this been truer than for today’s entrepreneur. Curious what to say.