Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 2.22 KB

html.md

File metadata and controls

69 lines (44 loc) · 2.22 KB

Hypertext Markup Language

  • Standard markup language for Web pages.
  • Markup is built using tags.

Document Type

  • The <!DOCTYPE> declaration must be the first, before the <html> tag.
  • The <!DOCTYPE> declaration is not an HTML tag; it instructs the browser the version of HTML.

https://www.w3schools.com/tags/tag_doctype.asp

HTML Tag

  • The <html> tag tells the browser that this is an HTML document.
  • The <html> tag represents the root of an HTML document.
  • The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag).

https://www.w3schools.com/tags/tag_html.asp

Head Tag

  • The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag.
  • HTML metadata is data about the HTML document. Metadata is not displayed.
  • Metadata typically define the document title, character set, styles, scripts, and other meta information.

https://www.w3schools.com/html/html_head.asp

Body Tag

  • The <body> tag defines the document's body.
  • The <body> element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.

https://www.w3schools.com/tags/tag_body.asp

HTML Attributes

  • All HTML elements can have attributes
  • Attributes provide additional information about an element
  • Attributes are always specified in the start tag
  • Attributes usually come in name/value pairs like: name="value"

Markup

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Title of the document</title>
</head>

<body>
    The content of the document...
</body>

</html>

https://next.plnkr.co/edit/NYJ4GnRGV5zcq86e?preview

HTML Guides

https://www.w3schools.com/html/

https://www.codecademy.com/learn/learn-html

HTML Tags Lookup

https://www.w3schools.com/tags/