
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
Create a hidden paragraph in HTML5
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 Articles
- Create a draggable paragraph in HTML5
- Create a paragraph with a right-to-left direction in HTML5
- How to create hidden comments in HTML?
- Create a pattern with HTML5 Canvas
- Create a text inside circles in HTML5 Canvas
- Create self-contained content in HTML5
- How to add a paragraph in HTML?
- How to create a transformation matrix with HTML5?
- How to create Definition Lists in HTML5?
- How to create a context menu for an element in HTML5?
- How do we create a footer for a document or section in HTML5?
- Indent the first line of a paragraph in CSS
- How to create Html5 compliant Javadoc in Java 9?
- Properties for HTML5 Canvas to create shadows
- Properties to create text using HTML5 Canvas

Advertisements