I am currently in the process of creating my own blog and I have got to marking up the comments, but what is the best way to mark it up?
The information I need to present is:
PS: I'm only interested in semantic HTML markup.
#Line Comments In languages where there is only one type of comment, like vanilla CSS and HTML, line comments will behave similarly to block comments ( /* */ and <! -- --> ).
Explanation: To comment out something in HTML, we have to place the information between the <! —and --> tags. Comments are some text or code which provides an explanation about the code and not visible to the user.
I think that your version with the cite, blockquote, etc. would definitely work, but if semantics is your main concern then I personally wouldn't use cite and blockquote as they have specific things that they are supposed to represent.
The blockquote tag is meant to represent a quotation taken from another source and the cite tag is meant to represent a source of information (like a magazine, newspaper, etc.).
I think an argument can certainly made that you can use semantic HTML with class names, provided they are meaningful. This article on Plain Old Semantic HTML makes a reference to using class names - http://www.fooclass.com/plain_old_semantic_html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With