Yorkville High School Computer Science Department
Yorkville High School Computer Science Department on Facebook  Yorkville High School Computer Science Department Twitter Feed  Yorkville High School Computer Science Department on Instagram

Yorkville High School Computer Science

ASSIGNMENTS: No Current Assignments

Web Design :: Lessons :: Links in Dreamweaver

Adding Links

Tag Definition from W3 Schools:

The <a> tag defines a hyperlink, which is used to link from one page to another.

The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

Adding links in Dreamweaver is not very difficult. The first thing you have to do is select the item that will be the link. If you are making a text link highlight all of the text that will make up the link. If you are making an image link simply click on the image. Once you have your future link selected there are a few ways to turn it into a link.

It is very important to test the links in your page after creating them to make sure they work correctly. You can go to Site>Check Links Sitewide to have Dreamweaver check your links for you.

Adding Links in Dreamweaver

Link States

Link States from W3 Schools:
Links can be styled with any CSS property (e.g. color, font-family, background, etc.).

Special for links are that they can be styled differently depending on what state they are in.

Although you may not realize it yet, links have a number of different states. These states occur at different points of interaction with the link, and you can use the knowledge of different states to easily create some cool link effects. There are four link states we are going to cover:

Link States in Dreamweaver

You can change all of these link states to different colors, but generally the link and visited states are the same color and the hover and active states are the same color. Feel free to play around with different combinations of color, though, to find something you like. Moving Link State Styles in Dreamweaver

  1. Go to the Properties Pane.
  2. Click on the Page Properties button.
  3. Go to the Links (CSS) section.
  4. Change the link state colors and/or underline properties.

Once you've changed the link states, they will be saved as styles on the page. However, you probably want the states to be in your CSS file so you can have the same states on all of your website pages. Follow the steps below to move the link states to your stylesheet.

  1. Go to the CSS Designer tab.
  2. Under "Sources," click on the <style> tag.
  3. Highlight all of the "a" selectors.
  4. Drag the "a" selectors to your CSS file under "Sources."

 

Yorkville High School Computer Science Department on Facebook Yorkville High School Computer Science Department Twitter Feed Yorkville High School Computer Science Department on Instagram