Forum Moderators: phranque

Message Too Old, No Replies

Adding to Image

         

mpossoff

7:31 am on Aug 21, 2008 (gmt 0)

10+ Year Member



Hi all,

Thank you to all who responded to my post about adding an image to my website and the help that was offered.

Now how do I add text to my image?

Marc

phranque

7:51 am on Aug 21, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



which question are you asking?
- if you want to edit the image so it contains some text, you need some image editing software.
- if you want to provide some alternate text for the image, you use the alt attribute [w3.org] of the image tag:
<img src="http://www.example.com/image.png" alt="this a short description of what the image is about or empty if the image should be invisible in a textual context">
- if you want to display a paragraph of text adjacent to the image, you simply include the text "next to" the image tag in your html document.
in this case there are many details concerning style and layout in general and text flow around the image in particular.

mpossoff

8:51 pm on Aug 21, 2008 (gmt 0)

10+ Year Member



Hi and thanks I added text to my image.

Question: how come when I View Page Source;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

www.w3.org is present?

Marc

phranque

11:23 pm on Aug 21, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



that is a document type definition [w3.org] which describes the type of html you are using to code the page.

Hi and thanks I added text to my image.

please tell us how you did that!