Ask coding questions

← Back to all posts
Hiding text
Coder2404 (361)

Is there like a way to hide text?

Answered by RYANTADIPARTHI (6009) [earned 5 cycles]
View Answer
Comments
hotnewtop
RYANTADIPARTHI (6009)

Solution

there are a few ways you can do this.

  • display
  • opacity
  • hidden

there are more, but I'm listing these.

  • display.
<style>
  .hiddenstuff {
    display: none;
  }
</style>

<p class='hiddenstuff'>This is hidden</p>
  • opacity
<style>
  .hiddenstuff {
    opacity: 0.0;
  }
</style>

<p class='hiddenstuff'>This is hidden</p>
  • hidden
<p hidden>This is hidden</p>

like that.
Any of them should work

Coder2404 (361)

@RYANTADIPARTHI This actually helped my problem, thanks- again.

Coder2404 (361)

Can I talk to you when I need more [email protected]

RYANTADIPARTHI (6009)

@Coder2404 sure, you can ask questions, and i will answer them.

Coder2404 (361)

I know this sounds weird, but is there any way to contact [email protected]

Coder2404 (361)

Um I have a question that I need a answer [email protected]

RYANTADIPARTHI (6009)

@Coder2404 sure, make a new post. I'll answer it there.

k9chelsea2 (785)

what language? if its html another answer could be the

<template></template>

tag, which should hide elements when a page loads although i have not tested it out before, read more about it here

Coder2404 (361)

What does the
<template></template>
do?

k9chelsea2 (785)

read the link i gave you

19wintersp (1120)

In HTML, you can apply the hidden attribute:

<p>You can see me!</p>
<p hidden>But not me!</p>