HTML <br> Tag
The <br> tag inserts a line break in text, moving content to a new line.It is an empty (self-closing) tag and is useful for breaking lines without starting a new paragraph. Syntax Attributes Attribute Description class Assigns one or more class names for styling. id Assigns a unique identifier to the line break. style Adds […]
HTML <p> Tag
The <p> tag defines a paragraph of text in HTML.It is a block-level element that automatically adds some spacing above and below the text, making content readable and organized. Syntax Attributes Attribute Description class Assigns one or more class names for styling. id Assigns a unique identifier to the paragraph. style Adds inline CSS styles. […]
HTML <h1 to h6> Tag
Syntax Attributes Attribute Description class Assigns one or more class names for styling. id Assigns a unique identifier to the heading. style Adds inline CSS styles. title Provides additional information as a tooltip. Example Output Browser Output Use our TryIt Editor to see the output. Browser Support Chrome Firefox Edge Safari Opera IE9+ ✅Yes ✅Yes […]
HTML <script> Tag
The <script> tag is used to embed or reference JavaScript code in an HTML document.It allows you to create interactive features, handle events, manipulate the DOM, and perform dynamic operations on a webpage. The <script> tag can be placed in the <head> or <body> section. Syntax Attributes Attribute Description src Specifies the URL of an […]
HTML <style> Tag
The <style> tag is used to embed CSS styles directly into an HTML document.It allows you to define the look and formatting of elements on the page without using an external stylesheet.The <style> tag must be placed inside the <head> section (though it can also appear in the <body> in some cases, but that’s not […]
HTML <meta> Tag
The <meta> tag provides metadata about the HTML document. Metadata is information that does not display directly on the page, but is used by browsers, search engines, and other services.Common uses include specifying the character set, page description, keywords, author, and viewport settings for responsive design. The <meta> tag must be placed inside the <head> […]
HTML <link> Tag
The <link> tag defines the relationship between the current HTML document and an external resource.It is most commonly used to link external CSS stylesheets, but can also be used for favicons, preconnect, alternate languages, and RSS feeds. This tag always appears inside the <head> element and does not have a closing tag. Syntax Attributes: Example […]
HTML <base> Tag
The <base> tag specifies the base URL and/or target for all relative URLs in a document.It defines a reference point so that links and resources (like images, CSS, or JavaScript files) without absolute URLs are resolved relative to the <base> URL. You can only use one <base> tag inside a document, and it must appear […]
HTML <body> Tag
The <body> tag defines the main content area of an HTML document. It contains all the elements that are visible to users on a web page — such as text, images, videos, links, tables, lists, and forms. Everything that appears in a browser window (excluding metadata) must be placed inside the <body> tag. Syntax Example […]
HTML <title> Tag
The <title> tag defines the title of an HTML document.It appears in the browser tab, search engine results, and bookmarks, helping users and search engines understand the page content. The <title> tag is placed inside the <head> section and is required in every HTML document. Syntax Example Output Browser Output Displays “Welcome to My Website” […]