- 1

display: none;... Why not just use <! - - notes? - - - > is there a reason or special thing?

3rd Apr 2016, 12:12 AM
Edwin A. Parada Munguia
Edwin A. Parada Munguia - avatar
3 Antworten
0
You might not want to touch the HTML once created, but set the property from a JavaScript using DOM based on some condition dynamically based on user inputs.
18th Apr 2016, 12:12 AM
Pratul Kumar Singh
Pratul Kumar Singh - avatar
0
<! - - notes? - - - > is just a comment in html which the browser does not display. display: none; is css code for removing an element that is already displayed on your site. Example: <p>This is a paragraph on my website</p> p { display: none; } ^ That removes the paragraph from the webpage and the space that the element contains.
1st Feb 2017, 6:15 PM
Basic Lee
Basic Lee - avatar
- 1
so the programmer can change the code and can make the content appears to user....using comment,he may get confused ;whether it is fr programmer or user
6th May 2016, 11:12 AM
Suman Kumar
Suman Kumar - avatar