Unnecessary Dots are added while pasting text into Writer

I try to paste this text from Notepad.

<html>
<head>
	<title>My web page</title>
		
</head>

<body>
	<h1>size 1</h1>
	<h2>size 2</h2>
	<h3>size3</h3>
</body>

</html>

But, it is pasted as in figure attached, when Unformatted text is selected while pasting:

(edit: fixed text-box format)

You have selected the Contents 1 style for what you pasted. This style is meant for table of contents, and has one right-aligned tab stop with dotted line for positioning the page number. You must have used tabs for “structured indent” in your code, which brings out those dots.

Select the entire html section and apply the style Preformatted text instead. It should have a monospaced font and no tab stops (so you will get the default tab spacing). It will look better.

Thanks a lot friend, it worked!