
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to specify that an element is not yet relevant in HTML?
Use the hidden attribute in HTML5 to create a hidden paragraph in HTML5 i.e. an element no longer relevant.
Example
You can try to run the following code to implement hidden attribute in HTML5 −
<!DOCTYPE html> <html> <body> <h2>Heading</h2> <p>This is a demo paragraph and visible.</p> <p hidden>This is a demo paragraph and hidden.</p> </body> </html>
- Related Questions & Answers
- How to specify that the element is read-only in HTML?
- How to specify whether the content of an element should be translated or not in HTML?
- How to specify a unique id for an element in HTML?
- How to specify that the form should not be validated when disabled in HTML?
- How to set whether an element is draggable or not in HTML?
- How to specify whether the element is to have its spelling and grammar checked or not in HTML?
- How to specify that the styles only apply to this element's parent element and that element's child elements in HTML?
- How to specify that an <input> element should be pre-selected when the page loads in HTML?
- How to specify which form element a calculation is bound to with HTML?
- How to specify that the element should automatically get focus when the page loads in HTML?
- How to specify that the element must be filled out before submitting the form in HTML?
- How to specify the type of box used for an HTML element using CSS?
- How to specify that an option should be pre-selected when the page loads in HTML?
- How to specify citation in HTML?
- Style every element that is not the specified element with CSS
Advertisements