in a simpler form, the HTML file can look like this, assuming the image files are in the same directory as the HTML files to render them:
'~~~~~~~~~~~~~~~~~~~~~~~~~<html lang="en">
<body>
<img src="MyFilename.jpg" />
</body>
</html>
'~~~~~~~~~~~~~~~~~~~~~~~~~
the most simple form is this:
'~~~~~~~~~~~~~~~~~~~~~~~~~
<html><img src="MyFilename.jpg">
'~~~~~~~~~~~~~~~~~~~~~~~~~
but it is a poor habit not to include the language (even though there isn't any text) and the <body>...</body> tags
using /> to end a tag is optional instead of simply using >
this just signifies that no ending tag is required
For instance, H1 (heading 1) requires an end tag whereas IMG does not (upper or lower case doesn't matter)
<h1>
this is my heading
</h1>
ps the <head>...</head> section is optional ... and the second <head> tag is a mistake. In the <img> tag, only the src attribute is necessary
On 2/18/2019 12:43 PM, crystal 8 strive4peace2008@yahoo.com [MS_Access_Professionals] wrote:
Hi Peter,
I put an example database showing how to display an image from the web using Access here:
http://www.msaccessgurus.com/Downloads/WebBrowser_ImagePages_s4p.zip
There are two types of web browser controls you can create. I made a form for each one. The first is on the ribbon. The second, Class=Shell.Explorer.2, is created by choosing ActiveX from the control list and then getting the Web Browser control from there.
the HTML files to display an image look like this:
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Language" content="en-us">
<title> Form and Popups </title>
<META name="description" content="Picture of Form and Popups for MyContacts" />
<meta name="Author" content="crystal (strive4peace)" />
<META name="copyright" content="© 2019 crystal long (strive4peace)">
</head>
<head>
<body>
<img src="../MyContacts_Popups.png"
title="Form and Popups for MyContacts"
alt="Picture of Form and Popups for MyContacts"
/>
</body>
</html>
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~crystal
VBA code you can use in your projects
http://msaccessgurus.com/code.htm
On 2/18/2019 12:10 PM, crystal 8 strive4peace2008@yahoo.com [MS_Access_Professionals] wrote:
Posted by: crystal 8 <strive4peace2008@yahoo.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (6) |
Tidak ada komentar:
Posting Komentar