Markdown versus HTML
Stay organized with collections
Save and categorize content based on your preferences.
Use either HTML or Markdown. Some of this style guide assumes that you're using HTML. If you're
using Markdown, details like what HTML elements to use in various contexts might be
irrelevant to you.
Markdown is easier to write than HTML, and it's easier for most humans to
read Markdown source than HTML source. However, HTML is more expressive
(particularly regarding semantic tagging)
and can achieve some specific effects that might be difficult or impossible in
Markdown. For example, you might have to switch to using the HTML code
element
for special characters in code such as nonbreaking spaces.
In the end, which one to use is primarily a matter of personal preference;
however, if your team or your document template already uses one or the other,
it may be best to use whatever they use.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-15 UTC.
[null,null,["Last updated 2024-10-15 UTC."],[[["\u003cp\u003eYou can use either HTML or Markdown for content creation.\u003c/p\u003e\n"],["\u003cp\u003eMarkdown is generally easier to read and write, but HTML offers more flexibility and control.\u003c/p\u003e\n"],["\u003cp\u003eThe choice between the two depends on personal preference and existing team/document conventions.\u003c/p\u003e\n"]]],["Markdown is simpler to write and read than HTML, while HTML offers greater expressiveness, especially in semantic tagging, and can handle specific effects like special characters in code. The choice between them depends on personal preference, though team or document template standards should be prioritized. Markdown might require switching to HTML elements for certain effects. Ultimately, both formats are acceptable, and the decision should be based on the project and the team.\n"],null,["# Markdown versus HTML\n\nUse either HTML or Markdown. Some of this style guide assumes that you're using HTML. If you're\nusing Markdown, details like what HTML elements to use in various contexts might be\nirrelevant to you.\n\nMarkdown is easier to write than HTML, and it's easier for most humans to\nread Markdown source than HTML source. However, HTML is more expressive\n(particularly regarding [semantic tagging](/style/semantic-tagging))\nand can achieve some specific effects that might be difficult or impossible in\nMarkdown. For example, you might have to switch to using the HTML `code` element\nfor special characters in code such as nonbreaking spaces.\n\nIn the end, which one to use is primarily a matter of personal preference;\nhowever, if your team or your document template already uses one or the other,\nit may be best to use whatever they use."]]