HTML
HTML
Programming
Content
HTML Introduction HTML Links HTML Head
HTML Editors HTML Images HTML Layout
HTML Basic HTML Favicon HTML Responsive
HTML Elements HTML Page Title HTML Computercode
HTML Attributes HTML Tables HTML Semantics
HTML Headings HTML Lists HTML Style Guide
HTML Paragraphs HTML Block & Inline HTML Entities
HTML Styles HTML Div HTML Symbols
HTML Formatting HTML Classes HTML Emojis
HTML Quotations HTML Id HTML Charsets
HTML Comments HTML Iframes HTML URL Encode
HTML Colors HTML JavaScript HTML vs. XHTML
HTML CSS HTML File Paths
Content
HTML Forms HTML Video HTML Editor
HTML Forms HTML Audio HTML Quiz
HTML Form Attributes HTML Plug-ins HTML Exercises
HTML Form Elements HTML YouTube HTML Website
HTML Input Types HTML Interview Prep
HTML APIs
HTML Input Attributes HTML Bootcamp
HTML Geolocation
Input Form Attributes HTML Certificate
HTML Drag/Drop
HTML Summary
HTML Graphics HTML Web Storage
HTML Accessibility
HTML Canvas HTML Web Workers
HTML SVG HTML SSE HTML References
HTML Tag List
HTML Media HTML Examples
HTML Examples
HTML Media
Content
HTML Attributes
HTML Global Attributes
HTML Browser Support
HTML Events
HTML Colors
HTML Canvas
HTML Audio/Video
HTML Doctypes
HTML Character Sets
HTML URL Encode
HTML Lang Codes
HTTP Messages
HTTP Methods
HTML
Introduction
HTML PROGRAMMING
HTML
• HTML is the standard markup language for
creating Web pages.
• Hypertext Markup Language is the
standard markup language for documents
designed to be displayed in a web browser.
It defines the content and structure of web
content. It is often assisted by technologies
such as Cascading Style Sheets and
scripting languages such as JavaScript.
What is HTML?
• HTML stands for Hyper Text Markup Language
• HTML is the standard markup language for
creating Web pages
• HTML describes the structure of a Web page
• HTML consists of a series of elements
• HTML elements tell the browser how to display
the content
• HTML elements label pieces of content such as
"this is a heading", "this is a paragraph", "this
is a link", etc.
A Simple HTML Document
Example
Explained
• The <!DOCTYPE html> declaration defines
that this document is an HTML5 document
• The <html> element is the root element
of an HTML page
• The <head> element contains meta
information about the HTML page
• The <title> element specifies a title for
the HTML page (which is shown in the
browser's title bar or in the page's tab)
Example
Explained
• The <body> element defines the
document's body, and is a container
for all the visible contents, such as
headings, paragraphs, images,
hyperlinks, tables, lists, etc.
• The <h1> element defines a large
heading
• The <p> element defines a
paragraph
What is an HTML
Element?
• An HTML element is defined by a
start tag, some content, and an
end tag:
• <tagname> Content goes here...
</tagname>
• The HTML element is everything
from the start tag to the end tag:
• <h1>My First Heading</h1>
• <p>My first paragraph.</p>
Start tag Element content End tag