HTML Introduction
What is HTML?
HTML is a markup language for describing web documents (web pages).
HTML ExampleA small HTML document:
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> Example Explained
HTML Tags
HTML tags are keywords (tag names) surrounded by angle brackets: <tagname>content</tagname>
Web Browsers
The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML documents and display them. The browser does not display the HTML tags, but uses them to determine how to display the document: HTML Page Structure
Below is a visualization of an HTML page structure: The <!DOCTYPE> Declaration
The <!DOCTYPE> declaration helps the browser to display a web page correctly. There are different document types on the web. To display a document correctly, the browser must know both type and version. The doctype declaration is not case sensitive. All cases are acceptable: <!DOCTYPE html>
<!DOCTYPE HTML> <!doctype html> <!Doctype Html> Common Declarations
HTML5 <!DOCTYPE html> HTML 4.01 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> XHTML 1.0 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
HTML HOME
HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Styles HTML Formatting HTML Quotations HTML Computercode HTML Comments HTML CSS HTML Links HTML Images HTML Tables HTML Lists HTML Blocks HTML Classes HTML Layout HTML Responsive HTML Iframes HTML JavaScript HTML Head HTML Entities HTML Symbols HTML Charset HTML URL Encode HTML XHTML HTML Forms HTML Forms HTML Form Elements HTML Input Types HTML Input Attributes HTML5 HTML5 Intro HTML5 Support HTML5 Elements HTML5 Semantics HTML5 Migration HTML5 Style Guide HTML Graphics HTML Canvas HTML SVG HTML Media HTML Media HTML Video HTML Audio HTML Plug-ins HTML YouTube HTML APIs HTML Geolocation HTML Drag/Drop HTML Local Storage HTML App Cache HTML Web Workers HTML SSE |