Forum Moderators: open

Message Too Old, No Replies

anchors placement in (x)html coding

anchors placement in (x)html coding

         

halloweb

2:03 pm on Sep 10, 2004 (gmt 0)

10+ Year Member


<a name="top"></a>
<div id="container"> .....</div>
OR

<div id="container"><a name="top"></a>
.....</div>

encyclo

2:08 pm on Sep 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or, even better, simply:

<div id="container"> .....</div>

and the link:

<a href="#container">Top</a>

If you want to go to the top of the page, just ad an

id
to the
body
element:

<body id="top">

and link:

<a href="#top">Top</a>

;)

halloweb

2:21 pm on Sep 10, 2004 (gmt 0)

10+ Year Member


another question i have a full working page ie IE mac but i have a little questionmark top center positioned above my header why is that?

Span

2:32 pm on Sep 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Looks like there's a questionmark somewhere in the head of your page..

halloweb

2:38 pm on Sep 10, 2004 (gmt 0)

10+ Year Member



this is view source IE5 mac
?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">

this is view source Safari
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">

encyclo

2:43 pm on Sep 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There might be a character not recognized by IE before your doctype in the source code. Make sure there is absolutely nothing, including any spaces, before the doctype.