66.0k views
4 votes
Write the HTML code to make the text "Learn Magic" link to a page called "magic-tricks.html”.

User Virushan
by
8.6k points

1 Answer

3 votes

Answer:

The answer to this question is given below in the explanation section.

Step-by-step explanation:

The below code is written in HTML

************************************************************************************************

<!DOCTYPE html>

<!--html start from here and this is comment line -->

<html lang="en-US">

<body> <!--html body start from here -->

<!-- a link attribute is given below that links another file (magic-tricks) in the same folder -->

<p><a href="magic-tricks.html">Learn Magic</a></p>

</body><!--html body end at here -->

</html>

<!--html end at here and this is comment line -->

*************************************************************************************************

When you run this code, it is neccessary for you to create another html file in same folder and named it "magic-tricks". When you will run the code into any browser and link "learn magic" will appear, as you will click on it "magic-tricks.html" file will get open.

User WBAR
by
8.6k points