Tutorial Archive

HTML

<img class="alignnone size-medium wp-image-1765" src="https://html5andcss3.org/wp-content/uploads/2026/03/HTML5_logo-265x300.png" alt="HTML5 Tutorial" width="265" height="300" />This is HTML tutorial category

24 articlesStructured learning track

Jan 29, 2026

HTML <basefont> Tag

The <basefont> tag was used to define a default font size, color, and font face for all text in an HTML document.Once set, all text on the page inherited these font properties unless overridden by other tags. ⚠️ The <basefont> tag is deprecated and not supported in HTML5.Modern web development uses CSS for controlling typography. [&hellip;]

Jan 29, 2026

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 [&hellip;]

Nov 21, 2025

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 [&hellip;]

Nov 21, 2025

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. [&hellip;]

Nov 21, 2025

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 [&hellip;]

Nov 21, 2025

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 [&hellip;]

Nov 21, 2025

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 [&hellip;]

Nov 21, 2025

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 [&hellip;]

Nov 21, 2025

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 [&hellip;]

Nov 21, 2025

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 [&hellip;]

Nov 21, 2025

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 [&hellip;]

Nov 2, 2025

HTML <s> Tag

The <s> tag in HTML is used to define text that is no longer correct, accurate, or relevant but should not be deleted.It visually renders text with a strikethrough line, similar to <del>, but <s> is meant for stylistic or factual changes rather than indicating document edits. Syntax Attributes Attribute Description None The <s> tag [&hellip;]

Nov 2, 2025

HTML <blink> Tag

The <blink> tag in HTML was used to make enclosed text blink or flash on and off continuously on the screen.It was introduced in Netscape Navigator browsers in the 1990s as a visual attention grabber for important text or warnings. Note: The <blink> tag is deprecated and not supported in HTML5 or modern browsers.The blinking [&hellip;]

Nov 2, 2025

HTML <marquee> Tag

The <marquee> tag in HTML was used to create scrolling text or images that move horizontally or vertically across a webpage.It was often used to attract attention with moving announcements, news tickers, or advertisements. Note: The <marquee> tag is deprecated in HTML5 and should not be used in modern web development.The same effect can be [&hellip;]

Nov 2, 2025

HTML <noframes> Tag

The <noframes> tag in HTML was used to provide alternative content for browsers that do not support frames.When a webpage used the <frameset> element to divide the browser window into multiple frames, the <noframes> tag offered fallback content (like a message or simple links) for users whose browsers couldn’t display frames or had frames disabled. [&hellip;]

Nov 2, 2025

HTML <frameset> Tag

The <frameset> tag in HTML was used to define a set of frames within the browser window. It allowed you to divide the window into multiple sections (frames), each displaying a separate HTML document. ⚠️ Important: The <frameset> element is not supported in HTML5. It was used in older versions (HTML 4.01) and has been [&hellip;]

Nov 2, 2025

HTML <frame> Tag

The <frame> tag in HTML was used to define a specific region within a <frameset> that could display a separate HTML document.Frames allowed web developers to split the browser window into multiple sections, each loading a different webpage.This tag is deprecated in HTML5 and replaced by more modern layout techniques using CSS Flexbox, Grid, or [&hellip;]

Nov 2, 2025

HTML <applet> Tag

The <applet> tag in HTML was used to embed Java applets (small Java programs) into a web page.Applets could display interactive graphics, animations, or run other Java-based functionalities directly within the browser.However, the <applet> tag is deprecated in HTML5 and should no longer be used — it has been replaced by the <object> or <embed> [&hellip;]

Nov 2, 2025

HTML <acronym> Tag

The <acronym> tag in HTML was used to define an acronym — a word formed from the initial letters of other words, such as NASA or HTML.When a user hovered over the acronym, the browser could display its full meaning using the title attribute.This tag is deprecated in HTML5 and replaced by the <abbr> tag. [&hellip;]

Nov 2, 2025

HTML <tt> Tag

The <tt> tag in HTML stands for “teletype text.”It was used to display text in a monospaced (fixed-width) font, resembling the output of old teletype machines.This tag is deprecated in HTML5, and developers should use CSS or the <code> tag instead. Syntax Attributes Attribute Description None The <tt> tag does not have any specific attributes. [&hellip;]

Nov 2, 2025

HTML <strike> Tag

The <strike> tag was historically used to display text with a strikethrough (line through the text).It is deprecated in HTML5.The modern standard uses the <del> or <s> tags or CSS text-decoration: line-through; to achieve the same effect. Syntax Attributes Attribute Description None The <strike> tag does not have any specific attributes. Example Output Browser Output [&hellip;]

Nov 2, 2025

HTML <big> Tag

The <big> tag was used to increase the font size of text by one level relative to the surrounding text.It is deprecated in HTML5, and CSS (font-size) should be used for controlling text size in modern web development. Syntax Attributes Attribute Description None The <big> tag does not have any specific attributes. Example Output Browser [&hellip;]

Nov 2, 2025

HTML <font> Tag

The <font> tag was historically used to change the font face, size, and color of text in HTML.It is deprecated in HTML5, and modern web design uses CSS (font-family, font-size, color) instead. Syntax Attributes Attribute Description face Specifies the font family of the text. size Specifies the font size (1–7 or relative values). color Specifies [&hellip;]

Nov 2, 2025

HTML <center> Tag

The <center> tag was used to horizontally center-align content in HTML.It is deprecated in HTML5 and should be replaced by CSS styling (text-align: center;) for modern web development. Syntax Attributes Attribute Description None The <center> tag does not have any specific attributes. Example Output Browser Output The text inside the <center> tag is displayed horizontally [&hellip;]