CSS basic tutorial display attribute
display attribute
Function: Specifies how web page elements are displayed.
Values: none (hidden), block (displayed as block elements), inline (displayed as inline elements)
block: Yes Convert inline elements to block elements.
inline: You can convert block elements into inline elements.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> <style type="text/css"> p{ display:none; } </style> </head> <body> <h1>習近平心中的互聯(lián)網(wǎng)</h1> <p>互聯(lián)網(wǎng)是20世紀最偉大的發(fā)明,它正在將人類“一網(wǎng)打盡”,人們在不知不覺中已經融入了互聯(lián)網(wǎng)生態(tài),互聯(lián)網(wǎng)讓世界變成了“雞犬之聲相聞”的地球村。</p> </body> </html>
Delete the following line and check the result
p{ display:none; }