HTML <svg> Tag
The <svg> tag is used to embed Scalable Vector Graphics (SVG) directly inside an HTML document.SVG graphics are resolution-independent, meaning they scale without losing quality and are ideal for icons, diagrams, charts, and illustrations.SVG elements are part of the HTML5 specification and work seamlessly with CSS and JavaScript. Syntax Attributes Attribute Description width Defines the […]
HTML <data> Tag
The <data> tag is used to associate machine-readable data with human-readable content.It allows the browser or scripts to understand the value of a text while still displaying a friendly version to users. Syntax Attributes Attribute Description value Specifies the machine-readable value associated with the content. (Global Attributes) class, id, style, title, etc. can also be […]
HTML Comment Tag
HTML comments are used to insert notes or explanations in the HTML code that are not displayed in the browser.Comments are helpful for developers to document code, temporarily disable code, or leave reminders. Syntax Attributes The HTML comment tag does not support any attributes. Only the content inside <!– –> is recognized as a comment. […]
HTML <span> Tag
The <span> tag is an inline container used to group text or elements for styling with CSS or to apply JavaScript functionality.Unlike <div>, <span> does not create a new block; it is inline and does not affect the layout by itself. Syntax Attributes Attribute Description id Assigns a unique identifier to the <span> element. class […]
HTML <div> Tag
The <div> tag defines a division or section in an HTML document.It is a block-level container used to group content for styling (CSS) or scripting (JavaScript). It is one of the most commonly used HTML tags. Syntax Attributes Attribute Description id Specifies a unique identifier for the <div> class Assigns a class name for CSS […]
HTML <dfn> Tag
The <dfn> tag identifies the defining instance of a term or concept within a document.It is used the first time a term appears, usually alongside its explanation. Browsers may style it in italics by default, but the real purpose is semantic — helping search engines, accessibility tools, and documentation systems understand term definitions. Syntax Attributes […]
HTML <code> Tag
The <code> tag is used to display a fragment of computer code in a monospace (fixed-width) font.It is typically used for inline code, not for large code blocks. Syntax Attributes Attribute Description Global Attributes Yes (e.g., class, id, style) Event Attributes Yes Example Output Browser Output This tag produces visible output.Please use our Tryit Editor […]
HTML <samp> Tag
The <samp> tag is used to represent sample output from a computer program, system, or device.Browsers typically display <samp> text in a monospace font, similar to how code or terminal output appears. Syntax Attributes Attribute Description None The <samp> tag has no unique attributes. It supports global and event attributes only. Example Output Browser Output […]
HTML <var> Tag
The <var> tag in HTML is used to define a variable in a mathematical expression or in a programming context.The content inside the <var> element is typically displayed in italic by default in most browsers to distinguish it from regular text.It helps semantically indicate that the enclosed text is a variable name. Syntax Attributes Attribute […]
HTML <kbd> Tag
The <kbd> tag represents keyboard input entered by the user.Browsers typically display <kbd> text in a monospace (typewriter-style) font to differentiate it from normal text.It is commonly used in tutorials, documentation, and instructions to show keys or input commands. Syntax Attributes Attribute Description None The <kbd> tag has no unique attributes. It supports global and […]