Should Comment The Code??
It's necessary if you're at the beginner stage. In order to tell the next developer that what the written code is doing. But remember that, Conmmenting Out the Code is not a goood pactice, code should be self explanitry.
How To Comment Out Html
Now suppose you are a beginner, what to do?
So if you're a beggner then you can comment out HTML. It will help you to understand you're for you and others && will increase it's readibility and maintainbility.
Note: This is not only With HTML. This is appliciable to all Programmming languages.
Html Comment Tag
Let me know, are you able to answer Why Comments? Should we Comment? if |YES| Lets's see Html Comment Tag This is a typical tag to add html single line comment
<!--Write your comments here
-->
Multiline Comment
There is not any specific markup tag to do a Multi Line comment. But it can be done by using the predefind comment tag here is the example.
<!--
This
Is
a
multiline
Comment In HTML OR HTML5
-->
HTML Tags
- Comment
- A
- Abbr
- Acronym
- Address
- Applet
- Article
- Aside
- Audio
- B
- Base
- Basefont
- Bdi
- Bdo
- Big
- Blink
- Blockquote
- Body
- Br
- Button
- Canvas
- Caption
- Center
- Cite
- Code
- Col
- Colgroup
- Datalist
- Dd
- Del
- Details
- Dfn
- Dialog
- Dir
- Div
- Dl
- Dt
- em
- Embed
- Fieldset
- Figcaption
- Figure
- Font
- Footer
- Form
- Frame
- Frameset
- H1 - H6
- Head
- Header
- Hr
- Html
- I
- Iframe
- Img
- Input
- Ins
- Kbd
- Keygen
- Label
- Legend
- Li
- Link
- Main
- Map
- Mark
- Menu
- Menuitem
- Meta
- Meter
- Nav
- Noframes
- Noscript
- Object
- Ol
- Optgroup
- Option
- Output
- P
- Param
- Pre
- Progress
- Q
- Rp
- Rt
- Ruby
- S
- Samp
- Section
- Select
- Small
- Source
- Span
- Strike
- Strong
- Style
- Sub
- Summary
- Sup
- Table
- Tbody
- Td
- Tfoot
- Th
- Thead
- Time
- Title
- Tr
- Track
- Tt
- U
- Ul
- Var
- Video
- Wbr
- Script
0 Comments