Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

text wont show using <h> and <p>

I am creating a simple art profile for fun, I have a banner and a navbar. I tried to put in text:

Welcome to my art profile. This profile contains all my artworks from the previous years.

But this wont show on my page.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I checked the padding of my instructio nand navbar, bot of them should not be in the way. These are the only 2 things added to the code. I simply want the text to appear on the page.

>Solution :

Alright, first off, add your code between 3 backticks (`). I looked at what I saw when you can edit an answer, and this is the code I saw:

<div id="main-content">
  <div>
    <h>Welcome to my art profile. This profile contains all my artworks from the previous years.</h>
  </div>
</div>

Second, <h> is not a tag. You are probably looking for <h1>, <h2>…, <h6>.

This is your improved code:

<div id="main-content">
  <div>
    <h1>Welcome to my art profile. This profile contains all my artworks from the previous years.</h1>
  </div>
</div>

Next, since you said there isn’t a lot that’s affecting your HTML, just post all the code. There is an “id” called “main-content”, which leads to believe some part of your code is causing the text not to show.

This website also isn’t for editing simple code mistakes, which, I will admit, is subjective.

You need to read this: https://stackoverflow.com/help/how-to-ask

EDIT: Format your CSS you added in your comment. It’s difficult to make it out. I don’t have enough reputation to edit, or make comments.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading