22 Comments

My Answer

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

Expand full comment

🤘🏽🤘🏽🤘🏽🎵🎵🎵 Nicely done! You can group some of the big series of keys together if you want: <kbd><kbd>Command</kbd>+ <kbd> C</kbd></kbd> Or you can leave it as is if you prefer. Thanks for sharing -- great work!

Expand full comment

Thank you so much, for the feedback.😊🙏

Expand full comment

I don't think this is finished. I don't want either group of control characters to break but couldn't decide whether to set the whole paragraph to overflow-x:auto; like the code paragraph. I also felt that the code could be styled more, but as it is all code, shouldn't it all have the same style?

https://codepen.io/romola/pen/dyvPoqj

Expand full comment

This looks great. My only comment would be that you don't need a paragraph around the description list. So great markup!

In regards to the control characters - I agree, an overflow on the paragraph might be a bit much. You could reduce the font size a bit for the <kbd> contents, which might help.

For styling code, the HTML elements don't do much by default (no surprise). There are lots of enhancements you could apply. https://prismjs.com/ is one -- and https://speckyboy.com/snippets-beautiful-syntax-highlighting/ describes a few other options.

In any case, you are doing great work with the basic HTML the assignment requires!

Expand full comment

Thanks, Jen. I will look at the enhancements and remove the extra paragraph around the list.

Expand full comment

Hey! Sorry for being a bit off topic, but I'd love to use <kbd> and <samp> when writing user guides in WordPress, but it seems that the native block editor lacks so many of the great HTML tags mentioned in this course. Do you have any hints? (beside using the HTML block)

Expand full comment

It's a GREAT question. Unfortunately, the editor creators either don't know about these HTML elements or don't particularly care. I would recommend asking them to add these elements. Perhaps someone could write a plugin for the plugin that would add extra HTML semantic elements for you? 😁

Expand full comment

I just performed a quick test with the regular paragraph block in Gutenberg, and it's possible to switch to HTML editing mode, add the <kbd> and <samp> tags by hand, and switch back to visual mode.

My concern was whether Gutenberg would filter out the tags, like it filters attributes it doesn't recognize (eg lang), but the both <kbd> and <samp> remains, and they are even recognizable while editing content probably due to the browsers default styling of those tags.

So in conclusion, it's possible to use at least some tags mentioned in this course, in Gutenberg, if added manually.

Expand full comment

Great news! Thank you so much for testing that. I'm glad Gutenberg isn't stripping them out. 👍

Expand full comment

Oh. And there seems to be documentation on how to add additional buttons to the rich text editor ... Definitely an area worth exploring. https://developer.wordpress.org/block-editor/how-to-guides/format-api/2-toolbar-button/

Expand full comment

Very nice! Thank you so much for sharing that resource!

Expand full comment

🔥🔥🔥🎉🎉🎉 Fantastic job as always, Karen! Love the added article tags and correct markup of headings. We are getting to "parts is parts" soon 😁

Expand full comment

🔥🔥🔥🎉🎉🎉 Woo woo!!! This looks fantastic -- great job!

Expand full comment

🔥🔥🔥🎉🎉🎉 KBDs look great! In regards to the code -- you're missing a </pre>. Also - do you think a <code> tag would help identify the code as well?... Looking great, thanks for sharing!

Expand full comment

https://codepen.io/jarchaff/pen/JjELxNY

Not sure I've been first before! Like yesterday, I find these tags really useful. Hopefully I'm using them correctly.

Expand full comment

🔥🔥🔥🎉🎉🎉 FIRST! Nicely done here. Your kbd's look great, as does everything else EXCEPT line 17. I'm not sure <samp> should be inside <code> because <samp> is the output of the computer, not the code itself. Make sense? Maybe move that starting <code> tag to line 20 and you're good? Great job!

Expand full comment

Yes, that makes sense, thank you very much :>

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

Well done, William! 🔥🔥🔥🎉🎉🎉 Looks fantastic!

Expand full comment