In this tutorial, we will go over commonly used HTML tags, elements, and attributes. We'll also see examples of how these tags, elements, and
attributes work. You can use this article as a reference guide whether you're a beginner or experienced developer. The following tags define the basic HTML document structure: Here's what all that looks like: The following tags give additional information to the HTML document:
HTML Document StructureWhen you're fleshing out your HTML document, you'll use certain tags to create the structure. The
You use the
The
We also have the
There's the
The Images in HTMLIn HTML, we use the Here are some attributes of the
Text Formatting in HTMLWe have many ways to format text in HTML. Let's go over them now briefly.
LinksThe Here
are some attributes of the
ListsThe The
FormsThe
Here are other input elements associated with forms:
Tables
Here are some tags introduced in HTML5:
ConclusionIn this article, we have seen a lot of HTML tags, elements, and attributes commonly used by developers. This is not all there is, but should serve as a good reference resource. I hope you found this helpful. Thank you for reading. Learn to code for free. freeCodeCamp's open source curriculum has helped more than 40,000 people get jobs as developers. Get started What is cheat sheet in CSS?What is a CSS Cheat Sheet? CSS Cheat Sheet provides you with the most common style snippets CSS gradient, background, button, font family, order, radius, box, and text-shadow generators, color picker, and more tools to add more visual weight to your document.
What are the basic HTML commands?Basic HTML commands. The HTML tag. Although not currently required by all clients, the <html> tag signals the point where text should start being interpreted as HTML code. ... . The head tag. ... . Titles. ... . The body tag. ... . Headers. ... . Paragraphs. ... . Preformatted text. ... . Boldface and Italics.. What are the 10 basic HTML tags?Now let's look at those 10 tags!. <html> … </html> — The root element. ... . <head> … </head> — The document head. ... . <title> … </title> — The page title. ... . <body> … </body> — The page's content. ... . <h1> … </h1> — A section heading. ... . <p> … </p> — A paragraph. ... . <a> … </a> — A link. ... . <img> — An image.. What is HTML used for?HTML (HyperText Markup Language) is the code that is used to structure a web page and its content. For example, content could be structured within a set of paragraphs, a list of bulleted points, or using images and data tables.
|