I don't know how to turn this into code


#1


Give the first <p></p> an id attribute of "large".

Give the second <p></p> an id attribute of "small".
this is what i have so far 
var p1= <p>foo</p> 
    var p2= <p>bar</p>


#2

One step at a time:

  1. Set p1 equal to
  2. a JSX <p></p> element.
  3. Write the word foo in between the <p></p> tags.

#3

How familiar are you with HTML? The reason I ask is that when you code in JSX you will effectively be coding a great deal of HTML.


#5

2 posts were split to a new topic: How to do this?


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.