Html  Cheat Sheet

Photo by Jackson So on Unsplash

Html Cheat Sheet

Basic HTML

<!DOCTYPE> Defines the document

html :- Defines an HTML document

head:- Contains metadata/information for the document

title:- Defines the title of the document

body:- Defines the document's body

h1 to h6:- Defines HTML headings

p:- Defines a paragraph

br:- Insert a single line break

hr:- Defines a thematic change in the document

!--...-- :- Defines a comment

IMAGES

img:- Defines an image

map:- Defines a client-side image map

area:- Defines an area inside an image map

canvas:- Used to draw graphics, on the fly, via script

figcaption:- Defines a caption for a figure element

figure:- Specifies self-contained contain

picture:- Defines a container for multiple image resources

svg:- defines a container for SVG graphics

FORMATTING

abbr:- Defines an abbreviation or an acronym

strong:- Defines bold text

blockquote:- Defines a section that is quoted from another source

code:- Defines apiece of computer code

em:- Defines emphasized text

mark:- Defines marked/highlighted text

pre:- Defines preformatted text

progress:- Represents the progress of task

q:- Defines a short quotation

small:- Defines smaller text

FORMS and INPUTS

form:- Defines an HTML form for user input

input:- Defines a input control

textarea:- Defines a multiline input control (text area)

button:- Defines a clickable button

select:- Defines a drop-down list

optgroup:- Defines a groups of related options in a drop-down list

option:- Defines an option in a drop-down list

label:- Defines a label for input element

fieldset:- Groupsrelated elements in a form

lagend:- Defines a caption for a fieldset element

Did you find this article valuable?

Support Arpan Mukherjee by becoming a sponsor. Any amount is appreciated!