/    Sign up×
Community /Pin to ProfileBookmark

Html Comment Question

Hi,

Which ones out of 4 correct ?

[code]
<! –Write comment here –>
<!–Write comment here–>
<!– Write comment here –>
<! –Write comment here– >
[/code]

Middle two display green in NotePad++. Sticking to them.

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@sibertJun 22.2022 — > @novice2022#1644797 Which ones out of 4 correct ?

https://www.w3schools.com/html/html_comments.asp
Copy linkTweet thisAlerts:
@novice2022authorJun 23.2022 — @sibert#1644799

Thanks.

And so ....

Sticking to the third one above. Ok ? Yes ?
Copy linkTweet thisAlerts:
@sibertJun 24.2022 — > @novice2022#1644836 Sticking to the third one above. Ok ?

Yes.

I encourage you to use Google to find answers that "could-be-answered-by-Google-in-3-seconds".

The quality of answers to your questions is directly related to the level of your questions.

(And I tried to followed [these guidelines](https://forum.webdeveloper.com/d/389093-please-ask-yourself-3-questions-before-replying-to-posts)... :-)
Copy linkTweet thisAlerts:
@arel3Jun 24.2022 — > @novice2022#1644797 Which ones out of 4 correct ?

> <! --Write comment here -->

> <!--Write comment here-->

> <!-- Write comment here -->

> <! --Write comment here-- >
>
>
> Middle two display green in NotePad++. Sticking to them.


I typically comment my HTML with both the second and third way of doing it in your question. They both work. The first and fourth way you posted won't work because the 2 dashes need to be right next to the exclamation point for HTTP to ignore it.

I've always also organized my HTML sections with custom element tags like &lt;headerStuff&gt;&lt;head&gt;links and metas etc&lt;/head&gt;&lt;/headerStuff&gt; so I can collapse those entire sections. This allows me to concentrate on the code I'm working on.

Hope this helped and gave some insight.
Copy linkTweet thisAlerts:
@novice2022authorJun 24.2022 — @arel3#1644865

Collapse these entire section ?

Can you show me what you mean by giving snippet ?
Copy linkTweet thisAlerts:
@novice2022authorJun 24.2022 — @arel3#1644865

Only the 2nd working for me.
Copy linkTweet thisAlerts:
@sibertJun 24.2022 — > @novice2022#1644880 Only the 2nd working for me.

https://jsfiddle.net/u4swy2zd/
Copy linkTweet thisAlerts:
@arel3Jun 27.2022 — What do I have to do so I can reply to topics I've already participated in or start a new thread? It's telling me "That's not allowed"? Why?
×

Success!

Help @novice2022 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...