Giter VIP home page Giter VIP logo

html's Introduction

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-->

html's People

Contributors

dasunimaheshika avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.