How to Write Text on an Image in HTML

Web designers typically use editing software to add text to images. However, website owners who wish to add text to their images may not have the funds to buy expensive software or the time to learn the complicated methods of altering images. A website owner can avoid these problems by using HTML to add text to images. Those who learn the applicable HTML code can add text to images without buying software or spending time on complex image editing.

Instructions

    • 1

      Download and open the free NVU web editor. An HTML editor like NVU allows the user to enter either plain text or HTML. The editor then saves pages as an HTML page so that they will display as a Web page. Click "Open," and find an existing HTML page if the user wishes to put the image on an existing page. Click on the "New" button at the top to create a new page for the image.

    • 2

      Click on "Source" at the bottom to see the HTML source code of the page. Look for the opening and closing body tags. The "<body>" tag is the opening body tag. The "</body>" tag is the closing body tag.

    • 3

      Place the following HTML code between the body tags:

      <table border="0" cellpadding="0" cellspacing="0">
      <tr>
      <td width="221" height="300" background="image link here" valign="bottom">
      <font size="+1" color="yellow">text here</font></td>
      </tr>
      </table>

      Placing the code between the body tags ensures that visitors to a web page will see the image when visiting the page on the Internet.

    • 4

      Change the width and height in the HTML to the same width and height as the image. Replace the "image link here" text with the link to the image. For example, if the image has a file name of "dogpicture.jpg," type that instead of "image link here." Leave the quotes around the file name. Add text to an image in the "text here" portion of the HTML.

    • 5

      Click "Save" to save the HTML file. Use the "Normal" tab at the bottom to see how the image will appear on a Web page. Center the text with the Spacebar. Press the Enter key to move the cursor down to the next line. Type additional lines of text as desired.

    • 6

      Use FileZilla to upload the files. Download the "FileZilla Client" version, and open the software. Log in at the Web host with the domain name, username and password.

    • 7

      Double-click on a website folder in the right window of FileZilla to open it. Find both the HTML file and the image in the left window, and right-click and select "Upload" to upload them. Ensure that the HTML file and image are in the same directory (folder). Otherwise, the image will not appear on the Web page.

Tips & Warnings

  • Change the font size and color to fit the size and color of the image. A visitor may have trouble reading the text if the text color is too similar to the image colors in the background.

  • Do not use this method when creating avatars for other websites. These sites allow the user to upload an image, but the image will not have the text from the HTML file.

Related Searches:

References

Resources

Comments

You May Also Like

  • How to Write an Image Poem

    An image poem is a poetic form that uses descriptions of visual images to demonstrate a subject or emotion. Image poetry can...

  • How to Write HTML to Bold Text

    Hypertext Markup Language (HTML) is a basic web design programming language that can be written with more common and accessible computer programs,...

  • How to Write a Speech

    Writing a speech is in many ways like writing a paper, except that there is no penalty for spelling and punctuation errors....

  • How to Write Code on HTML Button With Vb Script

    Hypertext Markup Transfer Language (HTML) is the code markup used to display web pages. Here is how it works: you create controls...

  • How to Write Good Alt Text for the Images on Your Web Page

    To make Web pages accessible, use alt text for images. That's what we're always taught. But there are good and bad uses...

  • How to Write a CD or DVD Image

    You can write a CD or DVD image to easily distribute it as downloadable content, or copy it to an actual CD...

  • How to Write a Haiku

    Haiku is a form of Japanese poetry that combine three different lines and a noticeable grammatical break. The break, or kireji, is...

  • How to Write a Picture Poem

    Like other poems, picture poems should be characterized by interesting themes, moving imagery, and carefully chosen words. However, the unique aspect of...

  • How to Write a Text Response Essay

    A text response essay, sometimes called a reader response essay, is a basic format for writing an essay in response to a...

  • How to Write an HTML Hyperlink

    Writing an HTML hyperlink for a Web page uses the anchor tag with a ref parameter in the opening tag indicating the...

Related Ads

Featured