Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How to (1) link two pages, (2) create an anchor, (3) embed an image, and (4) make hyperlinks?

How to (1) link two pages, (2) create an anchor, (3) embed an image, and (4) make hyperlinks?

How to (1) link two pages, (2) create an anchor, (3) embed an image, and (4) make hyperlinks?

Hey, what's up?

I know nothing about Java, but I know how to whip up a Dialog in Windows .vbs that performs various functions and subroutines.

My like to create .HTML files on my cellphone that use the viewport meta tag like this:


<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 

I navigate up and down the webpages using the <a></a> and <div id=""></div> tags.

I use a small .css to turn the background black, text white, and links yellow and red so that it looks nice and neat on my cellphone:


.html, body {background:#000;color:#fff;font:80% tahoma}
a {text-decoration:none}
a:link {color:#fe7}
a:hover {color:#fe7}
a:visited {color:#f00} 

I nest the navigation buttons on a page in a <div id="TOC"></div> tag. And I put a link on all the headings in my text that navigate back to the TOC.

At appropriate positions in the writing, I will place a "relative" link that will navigate to some other page. And I will attach an anchor to that link, as well like this "../Folder/Something.html#Super1". Using the DIV-tags as anchors is really neat.

I only use the <br> tag to separate elements, and I only use the SPAN or DIV elements if I want to bunch something together, which is only really necessary with the TOC Navigation Buttons at the top of my webpages.


<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="sheet.css">
<div id="TOC"> <a href="INDEX.htm">INDEX</a> | <a href="#Single-Leg_Squat">SINGLE 
  LEG SQUAT</a> | <a href="#Single-Arm_Dumbbell_Clean">SINGLE ARM DUMBBELL CLEAN</a> 
  | <a href="#Clock_Lunge">CLOCK LUNGE</a> | <a href="#Pushup_Position_Row">PUSHUP 
  POSITION ROW</a> | <a href="#Overextension_Kickback">OVER EXTENSION KICKBACK</a> 
  | <a href="#Supinating_Dumbbell_Curl">SUPINATING DUMBBELL CURL</a> | <a href="#Dumbbell_Lunge_with_Front_Raise">DUMBBELL 
  LUNGE WITH FRONT RAISE</a> | <a href="#Bent-over_Row_with_Back_Extension">BENT 
  OVER ROW WITH BACK EXTENSION</a> | <a href="#Golf_Squat">GOLF SQUAT</a> | <a href="http://www.menshealth.com/fitness/dumbbell-exercises-3">REFERENCE</a> 
<strong>DUMBBELLS</strong> <br>
5, 18 June 2013<br>
  Dumbbells may be even more useful than a Wet-Nap at a rib joint. They're 
  small, so you can move them around from one area to another. They're easy 
  to store, so you can exercise at home. They're versatile, so you can work 
  every body part with them. And they're effective: Using dumbbells, you work 
  parts of your body separately (which means the stronger side can't compensate 
  for the weaker, as can happen with barbells). You can substitute dumbbells for 
  most barbell moves, or try this dumbbell-specific circuit. <br>
<strong> TRAINING SESSION</strong> | (x) reps each (side/leg/arm), 30 seconds 
  rest, 2 sets<br>
Single-Leg Squat x 8-12<br>
  Dumbbell Clean x 10<br>
  Clock Lunges x 7<br>
  Pushup Position Row x 6<br>
  Overextension Kickback x 8<br>
  Supinating Dumbbell Curl x 8-12<br>
  Bentover Row with Back Extension x 8<br>
  Dumbbell Lunge with Lateral Raise x 6 <br>
  Golf Squat x 10-15 <br>
<div id="Single-Leg_Squat"><a href="#TOC">SINGLE LEG SQUAT</a><br>
Holding two dumbbells, stand with your knees slightly bent and your feet shoulder-width 
apart. <br>
         Lift your right leg so that your knee is 
  bent 90 degrees and your lower leg is parallel to the ground behind you. <br>
         Slowly lower your body until your left 
  thigh is parallel to the ground. Pause, then push your body back to the starting 
  position. <br>
         Finish all of the repetitions, then switch 
  legs and repeat.<br>
  <div id="Single-Arm_Dumbbell_Clean"><a href="#TOC">SINGLE ARM DUMBBELL CLEAN</a></div>
Squat over a pair of dumbbells and grab them with an overhand grip.<br>
         Stand and lift both weights up to chest 
  height. <br>
         Quickly drop underneath the weights and 
  "catch" them on your shoulders, with your elbows high. <br>
         Drop your elbows, keeping the dumbbells 
  at shoulder level. <br>
         Push the dumbbell in your left hand straight 
  up. <br>
         Pause, then lower the dumbbell. <br>
         Repeat the exercise, this time pressing 
  up the weight in your right hand only.<br>
<div id="Clock_Lunge"><a href="#TOC">CLOCK LUNGE</a><br>
Stand with your feet hip-width apart and hold dumbbells at your sides. <br>
       Step backward with your right leg to 6 o'clock, 
until your right knee is just above the floor and your left thigh is parallel 
to the floor, keeping your left knee over (not past) your toes. <br>
       Push back up to the starting position and 
repeat, this time stepping your right leg out to the side to 3 o'clock, keeping 
your toes pointed out to the side. <br>
       Return to the starting position once more, 
then step once more, this time placing your foot forward to 12 o'clock. <br>
       Return to the start position, then switch 
positions and step back with your left leg, moving to 6 o'clock, 3 o'clock, 
and 12 o'clock.<br>
<div id="Pushup_Position_Row"><a href="#TOC">PUSHUP POSITION ROW</a><br>
Get into pushup position with your arms straight and your hands resting on light 
dumbbells. <br>
Spread your feet apart for balance. <br>
       Tighten your abs as you pull one dumbbell 
off the floor and draw it toward your chest until your elbow is above your back. 
       Pause, then slowly return the weight to the 
floor and repeat with the other arm. <br>
TIP: If holding both dumbbells feels awkward, try doing the exercise holding only 
one dumbbell and place your other hand on the floor.<br>
<div id="Overextension_Kickback"><a href="#TOC">OVER EXTENSION KICKBACK</a><br>
Grab a dumbbell in your right hand and place your left hand and knee on a bench. 
       Place your right foot flat on the floor and 
bend forward at the hips so your torso is parallel to the floor. <br>
       Bend your right arm at a 90-degree angle 
so that your upper arm is parallel with the floor (palm facing your leg). <br>
       Without moving your upper arm, straighten 
your arm behind you. <br>
       As the weight clears your butt, slowly rotate 
your palm up toward the ceiling so that the back of your hand faces your body 
when your arm is straightened. <br>
       Pause, then slowly return to the starting 
position. <br>
TIP: If twisting the weight at the top of the movement feels awkward on your wrists, 
just do the move without the twist.<br>
<div id="Supinating_Dumbbell_Curl"></a><a href="#TOC">SUPINATING DUMBBELL CURL 
Hold dumbbells at your sides, palms toward you. <br>
       Curl the weights up, rotating your wrists 
inward 90 degrees by the time the weights reach your shoulders. <br>
       Reverse this motion as you lower the weights.<br>
<div id="Dumbbell_Lunge_with_Front_Raise"><a href="#TOC">DUMBBELL LUNGE WITH FRONT 
Stand holding a pair of dumbbells at your sides. <br>
       Lunge forward with one foot as you raise 
your arms out to the front. <br>
       Once your front knee is at a 90-degree angle 
(over your toes) and your arms are parallel to the floor, lower the weights, then 
push yourself back to the starting position. <br>
       Repeat the move, this time lunging forward 
with the opposite leg.<br>
<div id="Bent-over_Row_with_Back_Extension"><a href="#TOC">BENT OVER ROW WITH 
Stand with your knees flexed and hold a pair of dumbbells at arm's length 
by your thighs, with your palms facing behind you. <br>
       Bend forward at the hips until your torso 
is almost parallel to the floor and the weights are hanging directly beneath your 
shoulders. <br>
       Now pull the dumbbells up toward your chest 
until your elbows extend pass your torso. <br>
       Keep your arms stationary as you return to 
a standing position. <br>
Lower your arms and repeat.<br>
<div id="Golf_Squat"><a href="#TOC">GOLF SQUAT</a><br>
Hold one dumbbell with both hands at arm's length in front of your body. <br>
       Keep your torso upright and lower your hips 
until your thighs are at least parallel to the floor. <br>
       Pause 1 second, then rise to a standing position 
as you rotate your upper body to the left and lift the weight toward the ceiling, 
keeping your arms straight as if swinging a golf club. <br>
       Lower the weight as you return the starting 
position. <br>
Repeat, this time rotating to your right. 

I don't embed any images into the webpages, because images use up a tremendous amount of memory on my cellphone, but I want to buy a nice phone to remedy that.

Anyway, I want to go from HTML to JAVA. JAVA is more interesting.

Any tips would be appreciated thanks.

RE: How to (1) link two pages, (2) create an anchor, (3) embed an image, and (4) make hyperlinks?

I thot this was a pretty interesting thread...
No one want to give me a few tips ;) ;)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close