DasuniMaheshika / HTML

A list of commonly used HTML elements tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML5

HTML is a markup language for describing web documents(web pages). HTML documents are described by HTML tags. Each HTML tag describes different document content.

Basic HTML tags

  • normally come in pairs like content.
Tag Description
<!DOCTYPE html> Defines the document type
<html> ... </html> Declares the web page to be written in HTML
<head> ... </head> Page's head
<title> ... </title> Defines the title(not displayed on the page)
<body> ... </body> Page's body

Basic html elements

  • The HTML element is everything from the start tag to the end tag.
Tag Description
<h1> ... </h1> Headings
<p> ... </p> Paragraghs
<a href="link"> ... </a> Links
<img src="file_path"> ... </img> Images
<br> Defines a line break
<pre> ... </pre> Defines preformatted text
<div> ... </div> Block-level element.Often used as a container for other HTML elements
<iframe src="file_path"> ... </iframe> Used to display a web page within a web page

Text formatting elements

Tag Description
<b> ... </b> Defines bold text
<em> ... </em> Defines emphasized text
<i> ... </i> Defines italic text
<small> ... </small> Defines smaller text
<strong> ... </strong> Defines important text
<sub> ... </sub> Defines subscripted text
<sup> ... </sup> Defines superscripted text
<ins> ... </ins> Defines inserted text
<mark> ... </mark> Defines marked/highlighted text
<del> ... </del> Defines deleted text

html lists

Tag Description
<ul> ... </ul> Defines the type of list item marker(disc,circle,square,none)
<ol> ... </ol> Defines the type of list item marker(type="1",type="A",type="I")
<li> ... </li> List of items
<dl> ... </dl> Defines the description list
<dt> ... </dt> Defines the term(name)
<dd> ... </dd> Describes each term

html tables

Tag Description
<table> ... </table> HTML table
<tr> ... </tr> Defines the row
<th> ... </th> Defines the header
<td> ... </td> Defines the data/cell
<caption> ... </caption> Add a caption to a table

html forms

Tag Description
<form> ... </form> Form element
<input> Input element
<datalist> ... </datalist> Specifies a list of pre-defined option for input controls
<output> ... </output> Defines the result of a calculation
<select> ... </select> Defines a drop-down list

Media elements

Tag Description
<audio> ... </audio> Defines sound content
<video> ... </video> Defines a video or movie
<source> Defines multiple media resources for video and audio elements
<embed> ... </embed> Defines a container for an external application or interactive content(a plug-in)
<track> Defines text tracks for
<object> ... </object> used to embed different kinds of media files into an HTML document

html comments

<!-- Write the comments here-->

About

A list of commonly used HTML elements tags