Documente Academic
Documente Profesional
Documente Cultură
Description
<!--...-->
Specifies a comment
<!DOCTYPE>
<a>
Specifies an anchor
<abbr>
Specifies an abbreviation
<acronym>
Specifies an acronym
<address>
<applet>
<area>
<article>
Specifies an article
<aside>
<audio>
<b>
<base>
<basefont>
Version
<bdo>
<bdi>
<bgsound>
<big>
<blink>
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<center>
<cite>
Specifies a citation
<code>
<col>
<colgroup>
<comment>
<datalist>
<dd>
<del>
<dfn>
<dialog>
<dir>
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
Specifies a fieldset
<figcaption>
<figure>
<font>
<footer>
<form>
Specifies a form
<frame>
<frameset>
<h1> to <h6>
<head>
<header>
<hr>
<html>
<i>
<iframe>
<ilayer>
<img>
Specifies an image
<input>
<ins>
<isindex>
<kbd>
<keygen>
<label>
<layer>
Specifies a layer
<legend>
<li>
<link>
<main>
<map>
<mark>
<marquee>
<menu>
<menuitem>
<meta>
<meter>
<multicol>
<nav>
<nobr>
<noembed>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
Specifies a paragraph
<param>
<plaintext>
<pre>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
Specifies a script
<section>
<select>
<spacer>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
Specifies a table
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt>
<u>
<ul>
<var>
Specifies a variable
<video>
<wbr>
<xmp>
There are few HTML attributes which are standard and associated to all the
HTML tags. These attributes are listed here with a brief description.
Global Attributes
Not valid in base, head, html, meta, param, script, style, and title elements.
Attribute
HTML-5
Description
accesskey
class
contenteditable
Yes
contextmenu
Yes
data-*
Yes
draggable
Yes
dropzone
Yes
hidden
Yes
id
spellcheck
style
Yes
tabindex
title
translate
Yes
Language Attributes
The lang attribute indicates the language being used for the enclosed
content. The language is identified using the ISO standard language
abbreviations, such as fr for French, en for English, and so on. RFC 1766
(http://www.ietf.org/rfc/rfc1766.txt) describes these codes and their
formats.
Not valid in base, br, frame, frameset, hr, iframe, param, and script
elements.
Attribute
Value
Description
dir
ltr | rtl
lang
language_code
When users visit your website, they do things like click various links, bring
mouse over text and images etc. These are examples of what we call events
in Javascript and VBScript terminologies.
We can write our event handlers using Javascript or VBScript and can
specify some actions to be taken against these events. Though these are
the events but they will be specified as attributes for the HTML tags.
The HTML 4.01 specification had defined 19 events but later HTML-5 has
added many other events which we have listed down here:
HTML-5
Description
onafterprint
onbeforeprint
onbeforeonload
onerror
onhaschange
onload
onmessage
onoffline
ononline
onpagehide
onpageshow
onpopstate
onredo
onresize
onstorage
onundo
onunload
Form Events
Following tags have been introduced in older versions of HTML but all the
tags marked with are part of HTML-5.
Events
HTML-5
Description
onblur
onchange
oncontextmenu
onfocus
onformchange
onforminput
oninput
oninvalid
onreset
onselect
onsubmit
Keyboard Events
Events
HTML-5
Description
onkeydown
onkeypress
onkeyup
Mouse Events
Following tags have been introduced in older versions of HTML but all the
tags marked with are part of HTML-5.
Events
onclick
HTML-5
Description
ondblclick
ondrag
ondragend
ondragenter
ondragleave
ondragover
ondragstart
ondrop
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onmousewheel
onscroll
Media Events
Following tags have been introduced in older versions of HTML but all the
tags marked with are part of HTML-5.
Events
HTML-5
Description
onabort
oncanplay
oncanplaythrough
ondurationchange
onemptied
onended
onerror
onloadeddata
onloadedmetadata
onloadstart
onpause
onplay
onplaying
onprogress
onratechange
onreadystatechang
e
onseeked
onseeking
onstalled
onsuspend
ontimeupdate
onvolumechange
onwaiting
Fonts are specific to platform. You will have different look and feel of a web
page on different machines running different operating systems like
Windows, Linux or Mac iOS. Here we are giving a list of fonts which are
available in various operating systems.
HTML <font> tag is deprecated in version 4.0 onwards and now all fonts are
set by using CSS. Here is the simple syntax of setting font of a body of web
page.
body { font-family: "new century schoolbook"; }
or
Example
<!DOCTYPE html>
<html>
<head>
</body>
</html>
Font
Font
Andale Mono
Arial
Arial Bold
Arial Italic
Arial Black
Comic Sans MS
Courier New
Georgia
Georgia Bold
Georgia Italic
Impact
Lucida Console
Marlett
Minion Web
Symbol
Tahoma
Italic
Trebuchet MS
Trebuchet MS Bold
Trebuchet MS Italic
Verdana
Verdana Bold
Verdana Italic
Webdings
You can check example fonts here: Microsoft Fonts Examples. You can
also
have
more
information
on
Microsoft
Fonts
at
http://www.microsoft.com/typography/fonts.
Font
Font
American Typewriter
Andale Mono
Apple Chancery
Arial
Arial Black
Brush Script
Baskerville
Big Caslon
Comic Sans MS
Copperplate
Courier New
Gill Sans
Futura
Herculanum
Impact
Lucida Grande
Marker Felt
Optima
Trebuchet MS
Verdana
Webdings
Palatino
Symbol
Times
Osaka
Papyrus
Textile
Zapf Dingbats
Zapfino
Techno
Hoefler Text
Skia
Capitals
Charcoal
Gadget
Sand
Font
Font
Charter
Clean
Courier
Fixed
Helvetica
Lucida
Lucida bright
Lucida Typewriter
Symbol
Terminal
Times
Utopia