|
|
HTML Code TutorialTutor Ebook Download The Anchor Tag and HyperlinksHyperlinks are the colored, underlined words you find on a web document. Clicking on these words will send you to a predefined location on the same document, to another page on the same server or to a location on another server. Hyperlinks are created using the anchor tag. Commands for this tag can be:
The anchor tag requires a closing tag. a hrefText links are defined with the hyperlink reference anchor.
Location on Same Site
To link to another page on the same site the code would be: To link to another site:Note: <a href="http://www.destination.com/index.html">Another Site</a>Removing the UnderlineThe default underline can be removed from the hyperlink using style sheets. Though, you should not remove the underline from links within your document body, there are times when this practice is acceptable. Rollover EffectYou've seen hyperlinks that change colors when the mouse is placed over them. We use this effect on our links. The code for assigning colors to the different states of the hyperlink is shown below. It can be placed in a style sheet in the head section of your document. Change the specified colors to produce your own version of rollovers. |
Contents Table of ContentsIntroduction Page Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Buttons with CSSUsing Color Color Chart Using Images Using Templates Uploading HTML pages. HTML-CSS Quizzes |
Advanced EffectsIf you'd like to add some advanced effects to your links and you don't want to learn complicated javascript, here's a simple solution using some of the techniques mentioned above.
Copy the buttons:
See also: |
|
|