Skip to content

gillianwenhold/phrg-a-tag-with-href-attributes-lab-pca-000

 
 

Repository files navigation

Create an <a> Tag with an href Attribute

Objectives

  1. Code an anchor tag that defines an HTML hyperlink.

Instructions

Open index.html in your text editor. Add an a tag with the inner text of Flatiron School anywhere in the file. Then set the href attribute of your new link element to https://flatironschool.com.

You can run the tests with this lab via learn. Make sure you save the file before running the test suite. Failing tests will provide helpful error messages that you can use to debug your code — read them closely for hints!

Viewing your work in the browser

While working through these assignments, your general workflow should center on writing code in the text editor and periodically running the test suite in the terminal to check your work.

Another great way to track your progress is to open up the HTML document in your browser and watch how each change you make in the text editor affects the visual layout in the browser. If you're using a local development environment, you can open the HTML file directly in your browser. If you're coding in the Learn IDE, check out this Help Center article that explains how to spin up and connect to a simple remote server.

Once you have the HTML document open in your browser, you can make changes to it in the text editor, save the file, refresh the page in the browser, and see the changes instantly.

Does this need an update?

Please open a GitHub issue or pull-request. Provide a detailed description that explains the issue you have found or the change you are proposing. Then "@" mention your instructor on the issue or pull-request, and send them a link via Connect.

Resources

PHRG Create an `` Tag with an `href` Attribute

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 98.2%
  • HTML 1.8%