53 Comments

https://codepen.io/vrenee26/pen/bGgRWEw

For this exercise I placed the text in a <blockquote> tag with 'bromide paper' in a <dfn> tag. The citation is outside of the <blockquote> in a <p> tag with the Book title in a <cite> tag and the HTML link reference is within an <a> tag.

Expand full comment

PERFECT!!!

🔥🎉🔥🎉🔥🎉

🔥🎉🔥🎉🔥🎉

Expand full comment

A bit behind and there excused the inline styling ;) used the figure/blockquote approach from earlier, this time linking to the original work from the cite attribute and tag. Most odd thing may be the question mark separated from the definition tag. And as browser style sheet italicizes the definition, I had to italicize the question mark as well, because kerning. Would probably not use inline markup for styling in real life, but that's not today's topic. https://codepen.io/oldrup/pen/ExZXdRG

Expand full comment

Lovely job as always, Bjarne! Agreed that inline markup isn't the best, and the <i> around the ? isn't necessarily good either. But as long as you're aware of this, we'll call it good enough. Nice job and thanks for sharing!

Expand full comment

I thought that the quote would be in a blockquote and then the citation would not be a part of the blockquote. I was not sure if I should use a footer as others have done but I did not think of that before looking here so I kept mine as is.

https://codepen.io/scloteau/pen/QWdgdxY?editors=1000

Expand full comment

You got it! There are two methods. The WHATWG method, which you used, has no footer and places the credit and <cite> outside of <blockquote>. The MDN method put the credit and <cite> in a <footer>, and all of that is inside <blockquote>. You've done a great job following the WHATWG method. You might consider a <p> around the line with the citation, or you might put the URL in a cite attribute in the <blockquote> tag. Those are picky - this is a perfectly acceptable answer. Nice job!

Expand full comment

https://codepen.io/jarchaff/pen/ExZXgdQ?editors=1000

I put all of the information inside of a blockquote, since it's a short passage from a book. Since bromide paper is the thing being defined, I put that inside the <dfn> tag. I separated the actual definition of the item for readability's sake, but am not sure if that is bad practice. Like with yesterday's challenge, I made the title of the item into a hyperlink with the URL from the end of the content. Originally, I had the author's name in the <cite> tag, but it looked off.

Expand full comment

Nicely done! You separated the question (what is bromide paper?) from the rest of the paragraph, which makes this a little more scannable. You've got the cite right (YAY) - get rid of the extra </cite> after the author's name. You could put all of line 23 in a footer tag to bring it into alignment with what MDN recommends. Great work and thanks for sharing!

Expand full comment

Thank you for the feedback!

Expand full comment

My pleasure. Thank you for sharing and serving as a model for everyone else!

Expand full comment

Love it Karen! You nailed it using figure and figcaption, and of course, everything else. Great job! 🎉🎉🎉

Expand full comment

Interesting approach for this! However, this is a direct quote from the book, so we probably wouldn't want to rearrange it quite this far. Check William's result below for one possible solution. In any case, you've got the <dfn> element in the right place, and you've (ironically) set this up for great markup with a description list - which you'll learn about tomorrow. Thanks for sharing!

Expand full comment

Nicely done! The <cite> around the author's name isn't valid, but the other elements look good. Great job!

Expand full comment

i love your teaching :) thanks

Expand full comment

Thank you! 💖

Expand full comment

🔥🎉🔥🎉🔥🎉 Looks fabulous, nice work!

Expand full comment

The definition is in the parent paragraph so I took a cue from example 1 for this, all inside a blockquote element including a cite tag and link to the source material.

https://codepen.io/gipsi/pen/WNpKNvN

Expand full comment

Excellent! <footer> around that line with the citation rather than <p> and you're all set!

Expand full comment

Thank you! ☺️🌼

Expand full comment

Nicely placed <dfn> element! How about the citation - how should you format this? Thanks for sharing!

Expand full comment

Day- 4 Challenge

https://codepen.io/kajal-28/pen/GRrLYpj

Expand full comment

Hooray, you got the "bromide" defined! <q> is probably not the right element in this context -- sometimes quotes are just "". Consider <blockquote> for the whole passage, though, as we are quoting from a book. The <cite> is good -- perhaps wrap it around the book title instead of the author? Great job, thanks for sharing!

Expand full comment

Okay, I will correct it. Thank you 😊

Expand full comment

🔥🔥🔥🎉🎉🎉 Spectacular job! Looks great!

Expand full comment

https://codepen.io/pmmueller/pen/wvgYpWx

A <dfn> around "bromide paper" plus a figurized blockquote with a cited title.

Expand full comment

Woo woo! Nicely done, as always!

Expand full comment

My answer: https://codepen.io/romola/pen/VwPXKxY?editors=1000

I know this could be better, especially if I look at what others have done. I am just aiming to keep going in spite of lost time.

Expand full comment

https://codepen.io/jen4web/pen/ZELxqxg?editors=1000 -- gave you a commented version back. You did great and got most of it right, but I rearranged a few things and made it more efficient for you. Too much to explain here. :-D

Expand full comment

Thanks, Jen. I had a funny dream last night that you were wrapping up an in-person course in the Chicago area. I was the last person still trying to log off and finish up as you were leaving. But, you gave me some fudge brownies out of a large bag of them, not that I deserved them at all. I hope it's a good sign to start dreaming about a teacher :)

Expand full comment

I'd share fudge brownies with you any day 🤣🤣🤣 So funny, thanks for sharing!

Expand full comment

This what I came up with:

https://codepen.io/adamabundis/pen/eYgyEQq

Expand full comment

🔥🎉🔥🎉🔥🎉 Great job, Adam! This looks fantastic 😄

Expand full comment

https://codepen.io/dbakhshi/pen/oNBoWyM this challenges are very helpful and the samples are extremely informative and easy to follow the direction.

Expand full comment

I am so pleased they are helpful for you, yay! 🔥🎉🔥🎉🔥🎉 Erika and I are big believers in hands-on practice, not just reading. As for your pen, yay for using blockquote, and the cite looks great! Consider dropping the definitions in line 19 -- they aren't needed there. You can also move the <dfn> to go around just "bromide paper" inside of your H1. Great work!

Expand full comment

Hello professor Jan and professor Lee. Thank you for your positive feedback and helpful way to code. I’m really enjoying this Challenges and your amazing hands on practice. I totally agree with you prof, Jan, you are so right and well said about the <dfn>tag and I will change that later on. Once again thank you :)

Expand full comment

You are very welcome. This is not easy stuff, and we're glad you're practicing. That's how you improve!

Expand full comment

Thank you prof, Kramer. Well said.

Expand full comment

🔥🎉🔥🎉🔥🎉 PEFECT! You've formatted the quote as MDN advises, and your use of <dfn> is awesome. Great work and thanks for sharing!

Expand full comment

I’m going to catch up today. Read the email yesterday but couldn’t get into the codepen. So here it is. Not sure again if I miss something. I wonder how useful can be the <dfn> Element?

https://codepen.io/athelas85/pen/ZELXvxG

Expand full comment

🔥🎉🔥🎉🔥🎉 There is no "behind," Ana! Work at your own pace. The purpose of <dfn> is to connect a defined term to some other content that defines it. In this case, since <dfn> occurs within the paragraph, we can assume the term is defined by the paragraph. Other possibilities are with the nearest dd/dt or <section>. You might consider a <p> inside of your <blockquote> for that reason. Great job and thanks for sharing!

Expand full comment

Also running a bit behind like Bjarne :) I read all the other comments while marking up the HTML so I hope I didn't miss anything! https://codepen.io/hleffler/pen/YzNxzgx (please tell me it's perfect)

Expand full comment

PS there is no "behind". Self-paced is self-paced. Have fun as you can!

Expand full comment

It's ALMOST perfect! 😁 Remember that <dfn> looks to the closest p, dd, or section for its definition. Here you have the term in its own sentence... so where is the definition? 😁

Expand full comment
Comment deleted
Apr 9, 2021
Comment deleted
Expand full comment

Looks like the wrong pen here, too. Don't forget to fork first, save to your account, and then make changes. You might be making changes and forgetting to fork. 🍴🍴🍴

Expand full comment
Comment deleted
Apr 4, 2021
Comment deleted
Expand full comment

William! Hooray for being first on a Sunday morning. You did GREAT on this! I think I would have marked this up the same way. Great job!

Expand full comment

PS -- I really really appreciate your comments explaining your thinking. Explaining thinking is a super important learning mechanism for you, and it's helpful feedback for Erika and me to understand if we're being clear in our teaching. Thank you!

Expand full comment