HUB OF TUTORIALS
  • Business
  • Digital Marketing
  • Technology
    • HTML
    • CSS
    • jQuery
    • WordPress
    • Core PHP
    • Mysql
    • JAVA
    • Projects
    • Photography
  • Recipes
  • Others
  • Write for Us
HUB OF TUTORIALS
  • Business
  • Digital Marketing
  • Technology
    • HTML
    • CSS
    • jQuery
    • WordPress
    • Core PHP
    • Mysql
    • JAVA
    • Projects
    • Photography
  • Recipes
  • Others
  • Write for Us
  • Business
  • Digital Marketing
  • Technology
    • HTML
    • CSS
    • jQuery
    • WordPress
    • Core PHP
    • Mysql
    • JAVA
    • Projects
    • Photography
  • Recipes
  • Others
  • Write for Us
HUB OF TUTORIALS
  • Business
  • Digital Marketing
  • Technology
    • HTML
    • CSS
    • jQuery
    • WordPress
    • Core PHP
    • Mysql
    • JAVA
    • Projects
    • Photography
  • Recipes
  • Others
  • Write for Us
CSSHTML

How to Create Comment in HTML and CSS

Sometimes we need to don’t show some part in output but we do not want to delete in source code so we use to comment. In this article, you will learn How to Create Comment in HTML and CSS.

Comment in HTML

In HTML comment is use with the <!– –>

Example:-

<html>
<head>
<title>Comment in HTML</title>
</head>
<body>
<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Comments are not displayed in the browser -->
</body>
</html>

Another Example:- 

<html>
<head>
<title>Comment in HTML</title>
</head>
<body>
<!-- Do not display this
<img src="image.jpg" alt="Hub of Tutorials">
-->
</body>
</html>

Comment in CSS

Example:-

<html>
<head>
<title>Comment in CSS</title>
<style>
/*
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
*/
li a {
  display: block;
  width: 60px;
  background-color: #dddddd;
}
</style>
</head>
<body>
<ul>
  <li><a href="#home">Home</a></li>
  <li><a href="#news">News</a></li>
  <li><a href="#contact">Contact</a></li>
  <li><a href="#about">About</a></li>
</ul>
</body>
</html>
html comment html comment tag html style javascript comment link css to html style css
How to Create Rounded Corners using CSSPrevHow to Create Rounded Corners using CSSMarch 14, 2020
How to use Opacity Property on ImageMarch 14, 2020How to use Opacity Property on ImageNext

Comment (01)

  1. Pingback: How to Create Comment in PHP - Hub of Tutorials
Search
Recent Posts
  • The Power of AI Writing Tools in Transforming Digital Marketing Strategies
  • What is the difference between web design and GUI design?
  • Transforming Your Business with JustEat Like App Excellence
  • The Role of Plagiarism Changers in Enhancing Content Quality
  • How Students Can Increase Their Academic Productivity With Paraphrase Tool?
Categories
  • Business
  • Core PHP
  • CSS
  • Digital Marketing
  • HTML
  • JAVA
  • Jobs
  • jQuery
  • Mysql
  • News
  • Others
  • Photography
  • Projects
  • Recipes
  • WordPress

  • How to Create List in HTML
  • How to use Iframe in HTML
  • How to Create a Table in HTML and CSS
  • How to Add New HTML Content using jQuery
  • CSS Property of List tag in HTML
  • How to use CSS for Table in HTML
  • How to Make Basmati Rice Recipe
  • How to Make Indian Kheer Recipe
  • How to Make Spicy Aloo Tikki
  • How to Make Aloo Matar Samosa
  • How to Make Cheese Potato Sandwich
  • How to Make Aloo Palak Methi
  • Company Visitors Management System
  • Complaint Management System using PHP
  • Directory Management System
  • Employee Record Management System
  • Hospital Management System using PHP
  • Vehicle Parking Management System

Copyright © 2022 Hub of Tutorials. All Rights Reserved. Designed by AS Webworks