If you never have studied HTML before or need a quick recap of what you have understood. Even if you are experienced in HTML, it's easy to get confused between the references. So, we have created a basic cheat sheet that will help you understand at a rapid rate.
Paperub.com suggest you go through the uniquely crafted cheat sheet to give you a thorough understanding of how to use and implement necessary HTML tags and attributes. Due to the extensive nature of the material presented here, we recommend that you bookmark this page and return to it whenever you find yourself in need of a refresher course in HTML.
1. Document Overview
<html> ... </html>
The whole HTML page may be encapsulated inside the html element. The opening and closing HTML tags show the document's base element, HTML.
<head> ... </head>
The title tags, links to style sheets and scripts, and Metadata are all included in the head of an HTML page, which is captured by the head tag.
<title> text </title>
The title of the page is shown inside the title tag. This tag is shown in the address bar of the browser and may also be saved as a bookmark. Similarly, it's used by search engines.
<body> ... </body>
HTML documents show their content, such as text and images, inside the body element.
2. Document Info
All links in an HTML page have a default starting point and destination that are set by the base tag. It's a helpful tool for sites that have a lot of connections to themselves.
An HTML document's metadata is described using the meta element. It defines extra information on HTML. Information such as when it was written and what it was about.
The link tag establishes a connection to a remote style sheet, as well as other remote sites and documents.
In an HTML document, style information is delimited by the style element.
Script statements or links to external scripts are included in the script tag.
3. Document Structure
In HTML, headings are indicated by the elements <h1> through <h6>. It should come as no surprise that h1 is the most crucial heading and h6 the least. They often have divisions to denote distinct parts of an HTML page's structure.
Paragraph tags are widely used in HTML and may be seen here.
The line break is marked with the break tag. It works well for separating content that has to be read on separate lines. Please take note that there is no closing line break tag since the line is blank.
Highlighting a section of an HTML page, the div element serves as a division.
A web page's inline components may be put together using the span tag. Its primary function is to bring together disparate design components into a unified whole.
An excellent new feature that indicates a shift in the page's topic is the horizontal rule tag.
4. HTML5 Tags
With the introduction of HTML 5 new tags are introduced with some new functionalities.
Using the article tag, you may specify that a piece of text is an article.
In a document, the aside tag denotes the outline of a sidebar.
The bdi tag delineates certain passages, allowing for more flexible text manipulation in a variety of contexts.
Additional information that the user might choose to display or conceal is indicated by the details tag.
An interactive window for gathering user input is designated by the dialogue element.
Graphics, photos, charts, graphs, etc. are all welcome in the figure tag, which is an independent content extension.
The figure> element is used in the fig caption tag to provide context for the figure, which is often an image.
The footer tag displays the document's or section's footer.
Like the h1 element, the header tag displays the section or document's heading.
The main tag defines the primary focus of an HTML document.
The emphasis tag in content indicates the percentage of marked text that is emphasized.
When clicked, the menu item tag brings up a context menu from which the user may choose several options.
A scalar measurement inside a specified series may be described using the meter tag as a gauge.
User navigation links are sent using the nav tag.
As its name implies, the progress symbol indicates that work on a job has advanced.
If a piece of text does not support ruby annotations, use the RP tag to indicate such.
East Asian characters are described under the rt tag.
Ruby annotation is shown for East Asian Typography inside the ruby tag.
Chapters, titles, headers, footers, and so on are all examples of sections that may be defined with the section tag.
When used in conjunction with details> components, the summary tag serves as a visible heading.
Time and date may be easily expressed using the time tag.
Line breaks inside the text are indicated by the "word-break" tag.
(a) Text Formatting
The strong tag is a phrase tag, used to emphasize essential phrases. Because of its significance, browsers often bold it.
When used properly, the b tag may serve as a replacement for the b tag to produce bold text. This tag should be used for regular, non-emphasized text, words, and phrases, as opposed to the strong tag up above.
Using the font element to specify text size, spacing, and color is an outmoded technique in HTML5.
Use this abbreviation to make it clear when you're using an abbreviation, but still include a link to the full version if necessary. As an example, abbr title="UnitedNations"> UN</abbr>
Although it functions similarly to the abbreviation tag, the acronym tag is not yet implemented in HTML5.
A quick quote is indicated by the q tag.
To indicate smaller content that is half a line below the preceding text, use the sub tag.
(b) Image Formatting
With this tag, it's easy to display pictures.
When you click on this tag, you'll be sent directly to the image's URL.
To better explain the context of a picture to the viewer, this element shows alternative text.
This element allows you to specify a height in either a percentage or an absolute number of pixels.
With this tag, you may provide the width as either a percentage or a fixed number of pixels.
The text-to-image ratio is specified by this tag.
The border's width is indicated by this tag.
This tag denotes white space before and after the picture.
With guidance and effort, one can easily comprehend the tags, attributes, and code snippets. Paperub’s HTML cheat sheet is the perfect way to learn or revise in a few minutes. All the necessary elements have been discussed in brief. So indulge in a quick guide to HTML.
World-class blogs, articles, delivered weekly.
World-class articles, delivered weekly.