We can use comment tags to write important mote to ourselves within your HTML code. Comments do not appear when a browser displays a web page. For example, we might leave a future editing task or leave a note to the web developer viewing your HTML Source Code. Comments can also be useful for highlighting important sections of HTML code. such as where the header footer or navigation section on a page starts and ends In HTML5.
We can also define such sections with semantic tags. We can also place comments around HTML code to turn that code off. The browser does not interpret HTML tags inside comments
Insert a Comment tag
Step 1: Type <!– Wher you want to place a comment.
Step 2: Type the comment after the tag.
Step 3: Type after a comment is written –>
The Comments do not appear on the web page when the viewer views the web browser.
<!DOCTYPE html> <html> <Head> <Title>Coding thai</Title> </Head> <body> Type of Web Developer <p> A front end developer has one general responsibility: to ensure that website visitors can easily interact with the page. </p> <!--This is comment --> <p> Back-end developers are the experts who build and maintain the mechanisms that process data and perform actions on websites. </p> </body> </html>
Follow us on Social Media For More
Facebook, Instagram, Pinterest