HTML Tutorial - Link
open in the current page.
willvick.com
open in new tab or new windows.
willvick.com
Link to another part of the same page
Element
HTML Element
HEAD Element
BODY Element
Elements
An HTML element is an individual component of an HTML document. HTML element starts with a start tag / opening tag and ends with an end tag / closing tag. Everything between the start tag and the end tag are the element content. HTML elements are always case-insensitive. Some HTML element types have no content; these Empty elements are closed in the start tag. Most HTML elements can have attributes. Most HTML elements can contain other HTML elements there are called nested element.
HTML Element
HTML Element starts with the <html> opening tag and end with </html> tag. The HTML element contains all other HTML elements of an HTML document except for the <!DOCTYPE> tag.
HEAD Element
HEAD Element starts with the <head> opening tag and end with </head> tag. The HEAD element is usually placed the first in the HTML element but before the BODY element. HEAD element contains descriptive information about the document, such as <title>, <link>, <meta>, <style>, <script> etc. These elements are not displayed directly by the browsers but they function behind the scenes.
BODY Element
BODY Element starts with the <body> opening tag and end with </body> tag. The BODY element placed in the HTML element after the HEAD element. The BODY element that contains all the visual elements of an HTML document, such as text, hyperlinks, paragraphs, images, tables, lists, etc.
Attributes
HTML Attributes are property of the elements which may have values and these attribute values are always enclosed in quotes. It’s providing to the browser with some additional information about an elements how the elements should appear or behave. HTML elements can contain one or more attributes, attribute names and attribute values are case-insensitive and separated by an equals (=) sign.
Comments
The comment tag are used for written comments in an HTML document, it starts with the <!-- opening tag and end with --> tag. Comments are not displayed in the browser, comments are use to explain the source code, which can help later when edit the source code. The Comment tag is supported in all major browsers.
Tidak ada komentar:
Posting Komentar