Realmac Software

Welcome to the RapidWeaver Community Forums, where you can chat with RapidWeaver users from around the world!

Why does my simple HTML code not worked in a styled text page?

KiltedGreenKiltedGreen Brighton, EnglandPosts: 9Members
Hello,

I would like to put a simple badge with a link to a website in our web page. I have been sent the code to do this (which I assume is right, but I don't know HTML) which is the following:

<A HREF="http://www.brownpapertickets.com/event/249527"><IMG SRC="http://www.brownpapertickets.com//g/fl/bpt_l.gif" WIDTH=180px HEIGHT=91px BORDER=0></A>

I pasted this into our styled text page, selected the text and chose 'Code' from the formatting menu. If I preview or actually upload the page all I see is the same text as above in a Courier style font with a blue square containing a question mark in the centre of the text. No pretty logo!

I could go to the site, grab their image, paste it in and then link that to their page all in styled text but I would like to know why this HTML does not work and/or what I'm doing wrong.

Thanks for any help.

Comments

  • msabenemsabene Connecticut, USAPosts: 1,255Members
    Why "Code"? Just paste the corrected code shown below and keep in mind that the "border" attribute has been deprecated. Always better to use stylesheets to do any formatting...

    <a href="http://www.brownpapertickets.com/event/249527"><img src="http://www.brownpapertickets.com/g/fl/bpt_l.gif" width=“180” height=“91” border="0" /></a>

    Cheers,
    Mauricio
    RWExtras: Simpler webdev, one stack at a time...
  • mitchellmmitchellm Posts: 1,858Members
    Select the text and choose "ignore formatting" from the Format menu.

    If you're using Stacks then it would be slightly simpler to just use an HTML stack directly instead of styled text.

    The code works fine by the way.
  • KiltedGreenKiltedGreen Brighton, EnglandPosts: 9Members
    Thanks to both of you for being so quick.

    I don't know HTML, as I said, so I'm not sure how I'd respond to suggestions of "deprecated" stuff and style sheets. I do not use Stacks, though I've thought of it many times ;)

    However, it's now fixed. I was wrongly selecting the text and applying 'Code' from the HTML formatting popup menu when I should have been using Format > Ignore Formatting as mitchellm said.

    Thank you both. Great forum.
  • msabenemsabene Connecticut, USAPosts: 1,255Members
    Just a quick FYI... "Deprecated" means that it shouldn't be used anymore. Good design practices recommend adding any styling (width, height, border, etc.) in a separate stylesheet (preferred) or as inline style (accepted) as opposed to including them as part of the actual HTML tags as in your example.

    Stacks is a must-have these days if you are planning to build a site that goes beyond the basic functionality provided by RW...
    RWExtras: Simpler webdev, one stack at a time...

Leave a Comment

bolditalicunderlinestrikecodeimageurlquotespoiler