Complete the code to create a basic HTML page with a title.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>[1]</title> </head> <body> <h1>Welcome to my website</h1> </body> </html>
The <title> tag sets the title of the web page shown in the browser tab. "Hello World" is a common example title.
Complete the code to add a paragraph inside the body of the HTML page.
<body>
<h1>My Website</h1>
[1]
</body><div> instead of <p>The <p> tag is used to add paragraphs in HTML. It groups text into a block.
Fix the error in the code to correctly link an external CSS file.
<head>
[1]
</head><script> tag for CSS<style> tag with src attributeThe <link> tag with rel="stylesheet" and href="filename.css" correctly links an external CSS file.
Fill both blanks to create a link that opens in a new tab.
<a href="https://example.com" [1]="[2]">Visit Example</a>
href as attribute name_self which opens in the same tabThe target="_blank" attribute makes the link open in a new browser tab.
Fill all three blanks to create an unordered list with three items.
<ul> <li>[1]</li> <li>[2]</li> <li>[3]</li> </ul>
<ol> instead of <ul><li> tagsThe <ul> tag creates an unordered list, and each <li> tag adds a list item. Here, the items are Apple, Banana, and Cherry.