Inline elements

What are HTML Inline Elements and where are they used?


HTML inline elements are those elements that take only the width required by the content used by the user and are used on one or more lines at any place between words or at the end of words in a line. Such elements are called inline elements.


<tagname>Your content goes here</tagname>


Uses:


  • Make a part of text bold.
  • Make a part of text italic.
  • Create a link using the <a> element.
  • Highlight important text using the <mark> element.
  • Add an image using the <img> element.
  • Apply meaning or styling to a small part of text.

Commonly Used HTML Inline Elements and Their Uses:


<a>
Creates
links
<span>
Groups
content
<b>
Makes text
bold
<strong>
Strong
importance
<i>
Italic
text
<em>
Adds
emphasis
<mark>
Highlights
text
<small>
Smaller
text
<br>
Creates
line break
<abbr>
Defines
abbreviation
<code>
Represents
computer code
<sub>
Shows
subscript
<sup>
Shows
superscript
<q>
Defines short
quotation
<cite>
Identifies
creative work
<time>
Represents
date or time
<s>
Shows no-longer-
accurate text
<u>
Marks text
annotation
<kbd>
Represents
keyboard input
<var>
Represents
a variable
<samp>
Shows program
output
<data>
Links content
to machine value
<del>
Represents
deleted text
<ins>
Represents
inserted text

Other HTML Inline Elements and Their Uses:


<area>
Defines image-
map area
<audio>
Embeds
audio
<bdi>
Isolates text
direction
<bdo>
Overrides text
direction
<button>
Creates clickable
button
<canvas>
Provides
drawing area
<datalist>
Provides predefined
options
<dfn>
Marks
defined term
<embed>
Embeds external
content
<iframe>
Embeds another
page
<img>
Embeds
an image
<input>
Creates input
control
<label>
Labels form
control
<link>
Defines resource
relation
<map>
Defines image
map
<meta>
Provides
metadata
<meter>
Shows
measurement
<noscript>
Provides fallback
content
<object>
Embeds external
content
<output>
Shows calculation
result
<picture>
Provides responsive
images
<progress>
Shows task
progress
<ruby>
Represents ruby
annotation
<select>
Creates selection
control
<selectedcontent>
Displays selected
content
<slot>
Defines content
placeholder
<svg>
Embeds SVG
graphics
<template>
Holds HTML
template
<textarea>
Creates multiline
input
<video>
Embeds
video
<wbr>
Allows
word break
<script>
Embeds executable
code

ONLINE WEB TOOLS

WhatIsMyIpAddress
Shorterner