New Page Links
Part of the Fundamentals section of Coddy's HTML journey — lesson 22 of 60.
You can also create links that open in a new tab or window by using the target attribute with the value _blank:
<a href="https://www.example.com" target="_blank">Visit Example</a>This will open the link in a new tab or window, depending on the user's browser settings.
Challenge
EasyCreate an HTML document that includes a link that points to "https://www.example.com" and displays the text "Open Example". This link should open in a new tab.
Cheat sheet
To create links that open in a new tab, use the target="_blank" attribute:
<a href="https://www.example.com" target="_blank">Visit Example</a>Try it yourself
<!DOCTYPE html>
<html>
<body>
<!-- Write code here -->
</body>
</html>This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Fundamentals
2Text and Formatting
HeadingsParagraphsLine BreaksBold and Italic TextBold and Italic AgainRecap - Formatting8Forms and Inputs Part 1
Form BasicsText InputsInput AttributesPassword FieldLabels for InputsRecap - Basic Form11Event Registration Page
Project OverviewHeader Section9Forms and Inputs Part 2
Radio ButtonsCheckboxesDropdownsButtonsButtons in FormsRecap - Forms #1Recap - Forms #2