HTML code help?

HTML code example: <html> <head><title>title goes here</title></head> <body background="images/cloud.jpg"> <h1 align=center><strong>Welcome to my site</strong></h1> <h2 align=left><font color="green">Links:</font></h2> <!--Put links URL above this --!> <h2 align=right><font color="red">Random images:</h2> </body </html> Why does the random images: text put itself one line under the line that the Links: text is on? Sorry I am new. I want the Random Images: text to be on the same line as the Links: text. Here is an example: http://www.angelfire.com/planet/matt-snow/index.html

Public Comments

  1. carriage returns (pressing the enter button) have no effect on HTML script.. you need to put in breaks <br> that puts a return in put in as many as you need...<br><br><br> there is no closing tag needed email me - compwiz61 at yahoo dot com if you need anymore html help...
  2. This is the standard way for heading tags to operate. You can use css to change the box display characteristics to inline if you want the two types on the same line. You should be using CSS instead of the font tags to format your content.
  3. <html> <head><title>title goes here</title></head> <body background="images/cloud.jpg"> <h1 align=center> <strong>Welcome to my site</strong> </h1> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="52%" valign="top"> <h2 align=left><font color="green">Links:</font></h2> <a href"Home.html"><h3>Home</h3></a> </td> <td width="48%" align="right" valign="top"> <h2 align=right>Random images:</h2> </td> </tr> </table> </body> </html> Please try to use some editors like Macromedia DreamWeaver or Microsoft Frontpage to create HTML pages. Try to practice using Tables and Div tags. These are the very much important for creating HTML pages.
  4. Here ya go my friend. What I've done is recreated your page with a very basic page. Always check proper "open bracket" and "close bracket" for one thing. I note in your copy of your page "</body". Where's the">". Any-who try mine, see what happens and see if the site I've shared doesn't help you a bunch. OH, and by the way, I do agree that Front Page Or DreamWeaver will, in the long run be the way for you to go. But, I personally felt that I didn't so much merely want it written for me, I wanted to know how to write. Good Luck. Copy and paste this into a new notepad. Save it by whatever title you want to save it, but, the first copy save as ".txt" file. Then save it as "all files" click, same title.html.........save. Close both...open your browser and drag your new html file onto your screen. It will open. Here, get to copying... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>title goes here</title> </head> <body> <body background="images/cloud.jpg"> <h1 align=center><strong>Welcome to my site</strong></h1> <h2 align=left><font color="green">Links:</font></h... <!--Put links URL above this --!> <h2 align=right><font color="red">Random images:</h2> <h3 align=center><font color="blue">Check out this site http://www.mcli.dist.maricopa.edu/tut/tut0.html (Cut and paste into your browser if necessary) Also, I have other "fixes" that may help if they can't help you. I'll keep watch. Good Luck. </font> </body> </html>
Powered by Yahoo! Answers