get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
thecodingaviator on master
remove A (#31157) (compare)
I have an issue of one of these tests where I need to make the
element as a child of the element. Problem is I don’t know how to make this into a child element for main. Could someone help?
https://gyazo.com/dc6e2e9de6105154bbb9bf504f4011a9 Screenshot link to my code since I don’t know how to share it properly
<style>
.red-text {
color: red;
h2 {font-family: Lobster,monospace;}
p {
font-size: 16px;
font-family: Lobster;
}
</style>
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
I keep getting told that my h2 element should use the font lobster, Im confused?
There's another way to associate an input element's text with the element itself. You can nest the text within a label element and add a for attribute with the same value as the input element's id attribute.
Associate the text Loving with the checkbox by only nesting the text Loving in a label element and place it to the right side of the checkbox input element.
public List<Link> populateLinks(List<Link> array, Resource resource) {
if(resource != null) {
Iterator<Resource> linkResource = resource.listChildren();
while(linkResource.hasNext()) {
if(linkResource != null )
{
Link link = linkResource.next().adaptTo(Link.class);
if(link != null) {
array.add(link);
}
}
}
}
return array;
}
Turn the words cat photos located inside p element into a link using the same value for the href attribute as the link below the p element. The p element should show the same text in the browser, but the words cat photos should now be a link. Make sure to remove the a element with the text cat photos on the line below the p element.
<p>click here to view more cat photos</p>
In the previous step you turned the words link to cat pictures into a link by placing them between opening and closing anchor (a) tags. You can do the same to words inside of an element, such as a p element.
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.