NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Import images for HTML in NetBeans

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
mystery.man



Joined: 23 Jun 2013
Posts: 2

PostPosted: Sun Jun 23, 2013 9:54 pm    Post subject: Import images for HTML in NetBeans Reply with quote

I want to use images in my HTML code in NetBeans. I know how to use images in HTML but in NetBeans they are not working.I even tried giving whole path of images in NetBeans but still not working.Can anyone tell me how I can import images in NetBeans so that they can be used by HTML code?
& also some syntax not working in it like border, margin values.So how can I make my HTML code in NetBeans use them as same code without NetBeans is using those syntax & showing proper results.
Back to top
Edson Richter
Posted via mailing list.





PostPosted: Mon Jun 24, 2013 12:36 pm    Post subject: Import images for HTML in NetBeans Reply with quote

Em 23/06/2013 18:54, mystery.man escreveu:

Quote:
Quote:
I want to use images in my HTML code in NetBeans. I know how to use images in HTML but in NetBeans they are not working.I even tried giving whole path of images in NetBeans but still not working.Can anyone tell me how I can import images in NetBeans so that they can be used by HTML code?
& also some syntax not working in it like border, margin values.So how can I make my HTML code in NetBeans use them as same code without NetBeans is using those syntax & showing proper results.

You seems to have several questions related, and I'll try to help:

1) For web apps how to, check NetBeans tutorials: https://netbeans.org/kb/docs/web/quickstart-webapps.html

In general, your project will have a "images" or "icons" or whatever folder in WebPages folder. A tipical application has a structure similar to (my web app screenshot):


As you can see, I do have a "gif" file in root folder, and also a "images" and "icons" folders I use for different purposes.


2) Regarding some "syntax not working", you should be aware that different HTML versions support different set of attributes. For instance, if your project is HTML 4, then "border", "margin", etc, should be set in CSS and not directly in HTML.

For example, in HTML 3 you could use:

<img border='0' src='images/myimg.jpg'>

In HTML 4 and 5 it should be:

<img style='border: 0' src='images/myimg.jpg'>


Regards,

Edson Richter



aabdgejb.png
 Description:
 Filesize:  4.64 KB
 Viewed:  1113 Time(s)

aabdgejb.png


Back to top
mystery.man



Joined: 23 Jun 2013
Posts: 2

PostPosted: Wed Jun 26, 2013 9:50 pm    Post subject: Import images for HTML in NetBeans Reply with quote

Edson Richter wrote:
Em 23/06/2013 18:54, mystery.man escreveu:

You seems to have several questions related, and I'll try to help:

1) For web apps how to, check NetBeans tutorials: https://netbeans.org/kb/docs/web/quickstart-webapps.html

In general, your project will have a "images" or "icons" or whatever folder in WebPages folder. A tipical application has a structure similar to (my web app screenshot):


As you can see, I do have a "gif" file in root folder, and also a "images" and "icons" folders I use for different purposes.


2) Regarding some "syntax not working", you should be aware that different HTML versions support different set of attributes. For instance, if your project is HTML 4, then "border", "margin", etc, should be set in CSS and not directly in HTML.

For example, in HTML 3 you could use:

<img border='0' src='images/myimg.jpg'>

In HTML 4 and 5 it should be:

<img style='border: 0' src='images/myimg.jpg'>


Regards,

Edson Richter
Very Happy Very Happy Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo