phpBB Forum
 
It is currently Wed Mar 25, 2020 4:01 pm




Post new topic Reply to topic  [ 9 posts ] 
Simple HTML scripting 
Author Message
HH Member
HH Member
User avatar

Joined: Sun Jun 08, 2008 5:33 pm
Posts: 1835
Location: High Wycombe, Bucks, Uk
STEAM_0:0:467781
MCID: swampthing
BattleTag: Swampthing#1138
Post Simple HTML scripting
Im doing some html for my uni course atm, making a simple webpage. All im having problems with is getting the page im working on to load at the top and not bottom of the browser.
http://intweb.students.bucks.ac.uk/~21003362/Definitions.html#11
The page works fine and the links at the top direct to the bottom of the page like they are supposed to, but no matter what i do i cant get the page to load intially at the top. Any input is appreciated :D

_________________

the hat dont make the power.


Sat Apr 17, 2010 6:38 pm
Profile E-mail
HH Donor
HH Donor
User avatar

Joined: Tue Dec 25, 2007 12:08 am
Posts: 6095
STEAM_0:0:16743808
MCID: frog
Post Re: Simple HTML scripting
'11' is an anchor within the document.
Code:
<a name="11">DSL/ADSL</a>


So with #11 at the end of the URL the page will jump to that anchor point.

Take it off

http://intweb.students.bucks.ac.uk/~210 ... tions.html


Sat Apr 17, 2010 7:01 pm
Profile E-mail
HH Member
HH Member
User avatar

Joined: Sun Jun 08, 2008 5:33 pm
Posts: 1835
Location: High Wycombe, Bucks, Uk
STEAM_0:0:467781
MCID: swampthing
BattleTag: Swampthing#1138
Post Re: Simple HTML scripting
lol thanks :)


Sat Apr 17, 2010 7:35 pm
Profile E-mail
HH Donor
HH Donor
User avatar

Joined: Sun Jun 29, 2008 5:42 pm
Posts: 739
STEAM_0:1:14222378
MCID: Tomsavr
Post Re: Simple HTML scripting
My eyes! My beautiful eyes! :lol:

_________________

http://www.fpsbanana.com/sounds/4594


Sat Apr 17, 2010 8:31 pm
Profile E-mail
HH Donor
HH Donor

Joined: Thu May 08, 2008 12:07 am
Posts: 1941
STEAM_0:0:5406745
BattleTag: k3d#2960
Post Re: Simple HTML scripting
Just had a quick look and noticed a few issues.

You have content within your <head></head>

You have a reduntant closing </style> tag at the bottom of the page.

And html docs should really have a valid doctype in order to put the browser in the correct rendering mode http://www.w3.org/QA/2002/04/valid-dtd-list.html

The effect of using anchor links doesn't work really as you need more content at the bottom of the page. Try adding a picture or just blank space at the bottom. This means when you click the link the relevent section will be at the top of the viewport.

_________________
moo <-- see it works


Sat Apr 17, 2010 9:41 pm
Profile E-mail
HH Member
HH Member
User avatar

Joined: Sun Jun 08, 2008 5:33 pm
Posts: 1835
Location: High Wycombe, Bucks, Uk
STEAM_0:0:467781
MCID: swampthing
BattleTag: Swampthing#1138
Post Re: Simple HTML scripting
Thanks alot ked, i was thinking how i could do that without having to make every row in the table bigger. I understand the random </style> at the end but what do you mean about the <head> ??


Sun Apr 18, 2010 1:11 am
Profile E-mail
HH Donor
HH Donor
User avatar

Joined: Sun Feb 15, 2009 9:23 pm
Posts: 4908
Location: Aruba
STEAM_0:1:11237970
MCID: pgt
Post Re: Simple HTML scripting
usually you dont need all that stuff in the <head>, i.e the header doesnt belong in the <head> part, it belongs at the top of the <body>, if i remember correctly.

_________________


Last edited by PGT on Sun Apr 18, 2010 1:58 am, edited 1 time in total.



Sun Apr 18, 2010 1:17 am
Profile E-mail
HH Donor
HH Donor

Joined: Thu May 08, 2008 12:07 am
Posts: 1941
STEAM_0:0:5406745
BattleTag: k3d#2960
Post Re: Simple HTML scripting
w3schools wrote:
According to the HTML standard, only a few tags are legal inside the head section. These are: <base>, <link>, <meta>, <title>, <style>, and <script>.


http://www.w3schools.com/html/html_head.asp


Sun Apr 18, 2010 1:47 am
Profile E-mail
HH Donor
HH Donor

Joined: Sun Dec 02, 2007 8:47 pm
Posts: 688
STEAM_0:1:15560700
Post Re: Simple HTML scripting
This made me laugh

frog wrote:
'11' is an anchor within the document.
Code:
<a name="11">DSL/ADSL</a>


So with #11 at the end of the URL the page will jump to that anchor point.

Take it off

http://intweb.students.bucks.ac.uk/~210 ... tions.html


Mon Apr 19, 2010 9:10 pm
Profile E-mail
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forum/DivisionCore.