From 91add57a9c9f6886675b34c706b161d38d510f51 Mon Sep 17 00:00:00 2001 From: Jashan Bansal <36573762+JashanBansal0708@users.noreply.github.com> Date: Fri, 7 Dec 2018 06:44:56 +0530 Subject: [PATCH] Add tip for Comment keyboard Shortcut. (#24116) * Comment keyboard Shortcut. Add the tip for how to create the comments by keyboard shortcut in probably all modern text editors. * Reordered change, fixed formatting --- guide/english/html/comments-in-html/index.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/guide/english/html/comments-in-html/index.md b/guide/english/html/comments-in-html/index.md index 4041f8d777..1b57379537 100644 --- a/guide/english/html/comments-in-html/index.md +++ b/guide/english/html/comments-in-html/index.md @@ -9,6 +9,7 @@ It is a good practice to add comments to your code, especially when working with Comments are started with ``, and can span multiple lines. They can contain code or text, and won't appear on the front-end of the website when a user visits a page. You can view comments through the Inspector Console, or by viewing Page Source. + ### Example ```html ``` + +[About conditional comments](https://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx) + IE Conditional Comments are really helpful when you wish to serve each IE version with a slightly different CSS. IE (and other browsers) can have rendering bugs, or rather, 'quirks' that render your page a little differently than what you would expect. These require some CSS tricks to workaround (or even to make use of!) quirks, and so the conditional comments are good for targeting specific versions. For example, this CSS would only apply on IE 7 / 8: @@ -70,7 +74,11 @@ For example, this CSS would only apply on IE 7 / 8: ``` -More reading: +#### Tip +**CTRL + /** is a keyboard shortcut which works in probably all modern text editors to create the comments. It creates a single line comment, but if you want to comment more lines, just highlight all the area and press it. + +#### More Information * [About conditional comments](https://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx) * [Some IE CSS bugs](https://css-tricks.com/ie-css-bugs-thatll-get-you-every-time/) * [IE CSS bugs and fixes](https://code.tutsplus.com/tutorials/9-most-common-ie-bugs-and-how-to-fix-them--net-7764) +