Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

In html the level 5 lesson 3 there is a error in my answer

1. Quickly add a picture of any image from the Web and align it centrally, so that it appears in the center of the page.
2. To align the image in the center, you will have to include the image inside a paragraph, and use the style attribute on that paragraph to align the content of the paragraph centrally.
3. The correct flow for this would be, first add opening and closing Paragraph tags, add the style attribute to align the content inside the paragraph, and then add an image to it.

<!DOCTYPE html>
<html>
<head>
<title>Hakee</title>
</head>
<body>
<p style="text-align:center">
<img src="in between URL of an img"/>
</p>
</body>
</html>
by

1 Answer

iamabhishek
You have to use a Valid URL for image inside the <img> tag for the ‘src’ attribute.

Login / Signup to Answer the Question.