Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS visibility</title> <style> h1 { visibility: hidden; } </style> </head> <body> <h1>Hello World!</h1> <p>The <code>visibility: hidden</code> hides the element, but it still takes up space in the layout.</p> </body> </html>