HTML Introduction to HTML and CSS Adding a New Web Page Write the CSS

Robert Freeman
Robert Freeman
1,617 Points

My HTML page doesn't look like the result of the video :(

Hi,

Having just followed "Write the CSS with Treasure Porth", I found my code looks identical to that of the tutorial; however, my results look different in HTML. I used workspaces and tried an alternative editor "MS Code" and still got the same results.

Thanks, Rob

Steven Parker
Steven Parker
171,047 Points

To facilitate analysis, make a snapshot (note: not "screenshot") of your workspace and post the link to it here.

2 Answers

Steven Parker
Steven Parker
171,047 Points

You didn't say what differences you were seeing, but I notice two at first glance.

First, the image is much wider on your page. That's because in the video, the size embedded in the URL is "200/200" but your code has "1000/200". If you make it like the video the image will be round instead of a wide oval.

Then I see the title "Summary of Qualifications" is shown in upper case in the video. Your CSS file has the rule to do this, but the h2 element in the HTML file still needs to have the class="section-title" attribute added to the start tag.

Was that it, or were you seeing other differences?

Robert Freeman
Robert Freeman
1,617 Points

Wow, You're 100% right - Thanks Steven. I totally missed that.