HTML Introduction to HTML and CSS Getting Familiar with HTML and CSS Test: Changing the Look of a Web Page

Change the HTML paragraph tag to an h1 tag

Hi, How do I change the HTML paragraph tag to an h1 tag for the below code?

‘’’html <!doctype html> <html> <head> <link href="styles.css" rel="stylesheet"> </head> <body>

<p>Welcome to My Web Page!</p>

</body> </html> ‘’’

index.html
<!doctype html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
  </head>
  <body>

    <p>Welcome to My Web Page!</p>

  </body>
</html>
styles.css
h1 {
  color: blue;
}

2 Answers

Joe Nguyen
Joe Nguyen
18,771 Points

All you have to do is delete the <p> tags and add <h1> tags into the Welcome to My Web Page! Like as shown here:

<h1>Welcome to My Web Page!</h1>

Many thanks Joe