Basic HTML and HTML5: Introduction to HTML5 Elements?

Basic HTML and HTML5: Introduction to HTML5 Elements?
0.0 0

#1

Tell us what’s happening:
I cant solve this
1 Your code should have one main element
2. The main element should have two paragraph elements as children.
3.The opening main tag should come before the first paragraph tag.
4. The closing main tag should come after the second closing paragraph tag.

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> Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p> 

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

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


#2

You have to use a main tag(<main>)…
You haven’t used it in your code


#3

let me try it sir thanks


#4

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


#5

sir I have a problem in the second paragraph


#6

Hey @taloloy18 I have tried the challenge again myself and it works.
Here, follow these steps:

  1. Reset all code.
  2. Make a min tag and make sure you have both <p> tags within the main tag
<main>
<p></p>
<p></p>
</main>
  1. Then change the content of the text inside the <p> tags with the content given in the instructions.

Hope this helps out :slight_smile:


#7

I Get it. Thank you!! I already completed it.


#8

Thank you, i can do it:grinning::grinning::grinning::soccer::soccer::soccer:


#9

If it helped you with the solution, you can mark it as a solution so that it can help others as well :slight_smile:


#10

Tell us what’s happening:*

To finish up I’m requested not to change the order of h1 h2 or p in my code.
I can’t go on further from here.

Your code so far


<!--h1>Hello World</h1-->
<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-->

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 7.0; P8M Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36.

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