"Hypertext" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.
HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as
<head>, <title>, <body>, <header>, <footer>, <article>, <section>, <p>, <div>, <span>, <img>, <aside>, <audio>, <canvas>, <datalist>, <details>, <embed>, <nav>, <output>, <progress>, <video>, <ul>, <ol>, <li>
and many others
An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by "
<" and "
>". The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the
<title> the tag can be written as
<TITLE>, or in any other way.
What is HTML?
- HTML stands for HyperText 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.
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>Welcome to KodingNotes.com</h1> <p>My first paragraph.</p> </body> </html>
<!DOCTYPE html>declaration defines that this document is an HTML5 document
<html>element is the root element of an HTML page
<head>element contains meta information about the HTML page
<title>element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
<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.
<h1>element defines a large heading
<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>
HTML is Not Case Sensitive
HTML tags are not case sensitive:
<P> means the same as
The HTML standard does not require lowercase tags, but W3C recommends lowercase in HTML, and demands lowercase for stricter document types like XHTML.