How is a comment written in HTML code?
- -- Comment --
- /* Comment */
- // Comment
In HTML, comments are written between . It's essential to know this as comments can be used to provide explanations or annotations within the code, but they won't be displayed on the web page. This is different from some other programming and scripting languages where other symbols might be used for comments.
Loading...
Related Quiz
- Which type of button, when clicked, clears all input fields within a form?
- Why might you choose SVG over other image formats for web graphics?
- What role does the "name" attribute play in form data submission?
- Imagine you are building a pricing page with a table layout, and you are asked to ensure that specific cells are highlighted dynamically based on user interaction. How would you implement this while keeping the table layout clean and accessible?
- The ______ and ______ properties are used in CSS to hide and show columns in responsive tables.