Recent Topics

Newbie code question: <br clear=all>

Started by on Mar 01, 2005 – Contents updated: Mar 01, 2005

Mar 01, 2005 05:06    

Sorry for the total newbie question, but I'm trying to create a link with an image, and control where the next item is on the page, but the HTML checking feature won't let me combine <br> and <a href... > codes.

How do I replicate the following HTML code in my blog:

<a href="link"><img src="image"></a>Text<br clear="all">

Thanks in advance.

Mar 01, 2005 10:34

pgwodehouse wrote:

<a href="link"><img src="image"></a>Text<br clear="all">

I do it this way

<a href="link"><img src="image" /></a>Text<br clear="all" />

I add 2 "/" so it is strict xml (or something)

Mar 01, 2005 16:03

Thanks, that fixed it!

And I feel like even more of a newbie now! LOL

Mar 01, 2005 18:13

pgwodehouse - The "new" HTML is called XHTML, with three flavors (strict, transitional & frames). The effort is to make 'better formed' HTML pages.

XHTML requires that every tag be closed (i.e. - <a href="blah"></a>)

In the case of the <img> tag, it doesn't have a corresponding </img> tag, so what you do is close it by adding a "space"/> at the end. (Thereby closing 'itself').

You can learn more about XHTML [url=http://www.w3schools.com/xhtml/]HERE[/url] ... and not be a noob anymore! ;)

Cheers


Form is loading...

Photo gallery software – This forum is powered by b2evolution CMS, a complete engine for your website.