Jump to content
Sign in to follow this  
Future-Coder

3 Questions About Html

Recommended Posts

Q1: Where is xhtml used?Do I need to learn it?Q2: If I want to show someone that how I formatted a text, how would I show it?Which code will be used?Like if I want to show the bold code, how will I post the codes, because if we simply write the code, it will show its result.Q3: If I created a wonderful image from photoshop etc. and I want to show it to the whole world! And If I post it somewhere(not only forums but html pages too), anyone would be able to steal that image.And I like it to be unselectable and unsavable(if its the correct spelling!).If anyone right-clicks on it.There wont be the option of save image. I know these are too easy questions.And I could google them.But I am learning every language from w3schools and I would like you experties to help me.Thanks,MusgrotPlease reply :)

Share this post


Link to post
Share on other sites

A1: Wherever people have decided to use it. Err?A2: You encode the special characters - < to <, etc.A3: It is impossible to completely protect your images from being downloaded. At worst, people could simply go directly to the file's location (after e.g. using 'view source'). The only way to really protect an image is to watermark it or use metadata (which isn't foolproof anyway).

Edited by Synook

Share this post


Link to post
Share on other sites
A1: Wherever people have decided to use it. Err?
Is there any web built with xhtml?(such a silly question!!)
A2: You encode the special characters - < to <, etc.
Sorry I didnt understand, I meant that in forums you use the code code to represent any code in its original form(without its effects), whats the code for html?
A3: It is impossible to completely protect your images from being downloaded. At worst, people could simply go directly to the file's location (after e.g. using 'view source'). The only way to really protect an image is to watermark it or use metadata (which isn't foolproof anyway).
You are completely right.But still.Actually I am setting up a html page in which I want to keep my navbar's images and page containers unselectable.Can you tell me the html for it?And how to watermark and metadata?!

Share this post


Link to post
Share on other sites

A1: Depends on what you define as "use". If you look at the source of this very page, it says it uses XHTML Transitional. That's true, and yet it's not... it's a long story, but in short - if you look at a page, and at the top thee's the so called "DOCTYPE", then the page should be or could be using XHTML.... errr... assume it does.A2: Exactly what Synook said. When you write "<br />" in an HTML file, you're using the XHTML "br" element. When you write "<br />", the "<" part appears as "<" on screen, and since it isn't a real "<", there's no real "br" element. And if you want to write "&", you have to write it out as "&".A3: Keeping images unselectable is one thing. Keeping them undownloadable is a whole other (impossible to do) thing. You can make them unselectable by using the CSS background-color property on any element. Background images are not selectable. If you haven't already, read the CSS tutorial.

Edited by boen_robot

Share this post


Link to post
Share on other sites
A1: Depends on what you define as "use". If you look at the source of this very page, it says it uses XHTML Transitional. That's true, and yet it's not... it's a long story, but in short - if you look at a page, and at the top thee's the so called "DOCTYPE", then the page should be or could be using XHTML.... errr... assume it does.
Ok, thanks.
A2: Exactly what Synook said. When you write "<br />" in an HTML file, you're using the XHTML "br" element. When you write "<br />", the "<" part appears as "<" on screen, and since it isn't a real "<", there's no real "br" element. And if you want to write "&", you have to write it out as "&".
So in an html page, can you show me the <b> tag without it's effect?And if so, how is it done?
A3: Keeping images unselectable is one thing. Keeping them undownloadable is a whole other (impossible to do) thing. You can make them unselectable by using the CSS background-color property on any element. Background images are not selectable. If you haven't already, read the CSS tutorial.
I knew that it has to be done by css, but I dont know css, can you link me the tutorial for this particular thing please?

Share this post


Link to post
Share on other sites

The <b> tag without it's effect:

<b>

Write that down inside an HTML file, and view the file in a browser to see what happens. Instea of getting a <b> tag, you get the text "<b>" being written on screen.The CSS tutorial. You need to read all of it, or at least all up to "CSS Background". It's not that difficult, but I can't just give you a copy&paste code either.

Share this post


Link to post
Share on other sites
Guest FirefoxRocks
A3: Keeping images unselectable is one thing. Keeping them undownloadable is a whole other (impossible to do) thing. You can make them unselectable by using the CSS background-color property on any element. Background images are not selectable. If you haven't already, read the CSS tutorial.
I think you mean the background-image property :)

Share this post


Link to post
Share on other sites
I think you mean the background-image property :)
Opps... you're right. Well... relying on IDE auto completes has its drawbacks I guess :) .

Share this post


Link to post
Share on other sites
Q1: Where is xhtml used?Do I need to learn it?Q2: If I want to show someone that how I formatted a text, how would I show it?Which code will be used?Like if I want to show the bold code, how will I post the codes, because if we simply write the code, it will show its result.Q3: If I created a wonderful image from photoshop etc. and I want to show it to the whole world! And If I post it somewhere(not only forums but html pages too), anyone would be able to steal that image.And I like it to be unselectable and unsavable(if its the correct spelling!).If anyone right-clicks on it.There wont be the option of save image. I know these are too easy questions.And I could google them.But I am learning every language from w3schools and I would like you experties to help me.Thanks,MusgrotPlease reply :)
for question 2 : check this ASCII table, you can find all the keyboard keyshttp://www.asciitable.com/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...