About the HTML-CSS category

Yeah, I probably inserted code there about 25 times it was just bad code on my end. Thanks for the help! I got it sorted. ‘#F00’ to the rescue.

2 Likes

Hello, I have a doubt for my website, that if I want to insert h1, h2, h3, h4, h5 and h6 in random sequence but according to HTML this header tags should be in increasing sequence…?
Please help me…

1 Like

Hi Sunny,
not sure if I got your question right. You can use and insert the header tags as you wish and set them as you prefer in terms of the feel and look.

Normally the h1 it’s the main title, but that doesn’t mean that has to be strictly “bigger” than the h2 or before it, jut prioritize them in terms of search results importance.

Hope this helps!
Ciao

1 Like

Hi people!
I need help understanding the behaviours of <div> when applying margin.

I have two <div>, both with {margin: 24px auto} .
When I inspect them I can see that the second it’s stacked after the previous one, but the bottom margin (24px top and bottom) it’s not affecting this second one, which is actually touching the first <div> with its “box content”.

Which CSS class could be affecting this behaviour? What it could be wrong in my code?

Thanks!

Hello RaniFloat, I’m currently trying to solve this problem as well. How were you able to get through this please?

1 Like

dont know what to do for Nest the existing img element within an a element.

1 Like

Posting the actual code would help others evaluate what you have going on. When you reply, simply press the button in the tool bar that looks like “</>” then paste your code in the highlighted area.

1 Like

Excellent coding.and can i start html,css and java script with online and study online.

Thanks,

2 Likes

@DJB24 please make sure the spelling of “color” in background attribute.

1 Like

i want help
basic html and html5

1 Like

hey there, i have a bit of problem understanding my mistake in introduction to html5 elements. it says that the main element should have 2 para. elements as children. sooo, i need help

Freecodecamp. Introduction to the Applied Visual Design Challenges: Create a Graphic Using CSS exercise. You are asked to change the background-color of an element to transparent. I’m out of ideas. Please Help.

1 Like

include one main element before p element and /main after p element

img element is self closing so there is no need to put a / . if you see the description about every tag in the box aside of your output page! then it is written there.

i can’t what you want to ask please provide codes you have written so far.

Hi, I am not sure I understood your problem but maybe the “a” flag can help you, for instance:

<a href="www.myImageUrl.com">
    <div class="myButton"> Click here </div>
</a>

It will open the url whenever you click on the element you will put inside it.

Sir i am going through the Responsive web design course on freecodeCamp and the compiler is showing error .

Hello, it looks like you should only have one .red-box class. Try adding the padding property below the red-box margin element. Also remove the space between padding and the :
Hope that helps :slight_smile:

Tell us what’s happening:

I am unable to copy and paste the text
Your code so far


<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run
	catnip eat the grass sniff.</p>

<p>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 YaBrowser/19.4.3.370 Yowser/2.5 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/introduction-to-html5-elements/

1 Like

the video tutorial tells me to copy and paste the needed text. I am able to copy, not able to paste. WHen i right click tbhe mnouse there is not even the option to paste. Wondering if it has to do with browser incompatability? (Yandex)

1 Like