From 9932f6ea721e70352fd76fd5a5f49d9815fb5ff0 Mon Sep 17 00:00:00 2001 From: minjo70 <175584197+minjo70@users.noreply.github.com> Date: Fri, 10 Oct 2025 16:59:16 -0600 Subject: [PATCH] feat(curriculum): add interactive examples to target attribute lesson (#62674) --- .../6716744f7245947a3dd60009.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/blocks/lecture-working-with-links/6716744f7245947a3dd60009.md b/curriculum/challenges/english/blocks/lecture-working-with-links/6716744f7245947a3dd60009.md index 11bd708b8da..28b292322a6 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-links/6716744f7245947a3dd60009.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-links/6716744f7245947a3dd60009.md @@ -5,14 +5,20 @@ challengeType: 19 dashedName: what-are-the-different-target-attribute-types --- -# --description-- +# --interactive-- -You may have seen the `target` attribute on anchor elements, or links. This important attribute tells the browser where to open the URL for the anchor element: +You may have seen the `target` attribute on anchor elements, or links. This important attribute tells the browser where to open the URL for the anchor element. + +Click on the link and you will be directed to the freeCodeCamp homepage in a new browser tab. + +:::interactive_editor ```html Visit freeCodeCamp ``` +::: + There are four important possible values for this attribute. Note that each value is preceded by an underscore. The first value is `_self`, which is the default value. This opens the link in the current browsing context. In most cases, this will be the current tab or window.