Skip to main content

Posts

Showing posts from 2018

HTML5

HTML5 <!DOCTYPE> The HTML  <!DOCTYPE>  tag is used for specifying which language and version the document is using. This is referred to as the  document type declaration (DTD) . With the introduction of HTML5, the <!DOCTYPE> tag is mostly useless, as HTML 5 does not require a reference to a DTD. Having said that, for legacy reasons, the HTML5 specification recommends including the <!DOCTYPE> header at the top of all HTML documents.

HTML 5 Comments Tag

HTML 5 Comments Tag Description The HTML 'comments' tag is used for creating comments within your HTML code. Comments aren't displayed in the browser - they are simply there for the programmer's benefit. Comments can assist you, the HTML programmer, because you can write notes to yourself that explain what the code does. This is especially useful when you have a lot of code.

HTML5 Global Attributes

HTML5 Global Attributes Each HTML5 element supports a number of attributes. The attributes listed here are common to all HTML5 elements. Attribute Description accesskey Specifies a shortcut key that can be used to access the element. Possible values. [Any string of characters. This string of characters specifies the key/s the user needs to use in order to access the element.] class Document wide identifier. Used to refer to a class specified in the style sheet. The value should be the name of the class you wish to use. For more information, see CSS class. contenteditable Sets whether the user can edit the content or not. Possible values: true