Hello there,
In this article, we will learn the Comment Lines, which is a very useful topic in Web Software languages or markup languages.
What are Comment Lines?
These comment lines, which are the most necessary things from the most skilled programmer to the most novice programmer; It is used to inform the software developer who will later take part in this software project or to assist any user who wants to make changes to this software.
Now, let’s see how these comment lines are used in widely used languages…
TEXT MARKUP LANGUAGE: HTML
The comment line is used in HTML Markup language like this:
Starting with < !-- Ends with -->
Any code between these two markups is ignored in Web Browsers.
Visually:
Comment Lines in HTML
Comment Codes Output
STYLE SHEET LANGUAGE: CSS
The comment line in CSS, which you can use for Images, DIVs, Tables, Texts and anything for decoration on your website, is used as follows:
Starts with /*
Ends with */
Any code between these two markups is ignored in Web Browsers.
Visually:
Comment Lines in CSS
Comment Codes Output
SCRIPTING LANGUAGE: PHP
Comment lines are used in 3 ways in PHP Web programming language.
Starts with (only 1 line) //
Starts with (only 1 line) #
Starts with /* and ends with */
Any code between these two markups is ignored in Web Browsers.