Multiline comment in HTML
HTML comments are placed in between <!-- ... --> tags. So, any content placed with-in <!-- ... --> tags will be treated as comment and will be completely ignored by the browser.
in the html markup language if you want to comment something then i will show you how to comment in html
single line comment in html:-
<!-- comment write here -->
example:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>single line comment</title>
</head>
<body>
<h1>single line comment example</h1>
<!-- single line comment -->
</body>
</html>
multiline comment in html:-
example:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>multi line comment</title>
</head>
<body>
<h1>multi line comment example</h1>
<!-- multi line comment
hey friends
how are you
-->
</body>
</html>
Post a Comment
If you have any doubts, Please let me know
Thanks!