|Internet media type||
|Uniform Type Identifier (UTI)||public.html|
|Developed by||World Wide Web Consortium & WHATWG|
|Type of format||Markup language|
Tags[change | change source]
HTML uses special bits of programming language called "tags" to let the browser know how a webpage should look. The tags usually come in pairs: an opening tag defines the start of a block of content and an ending tag defines the end of that block of content. There are many different kinds of tags, and each one has a different purpose. See Basic HTML Tags below for tag examples.
Some tags only work in certain browsers. For example, the
<marquee> tag, which is used to make a bit of writing slide across the page, only works in the Internet Explorer and Mozilla Firefox browsers. Other browsers simply ignore this tag and display the writing normally. Many web page creators avoid using these "non-standard" tags because they want their pages to look the same with all browsers.
Example[change | change source]
Here is an example page in HTML.
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>This is the title of the page.</title> 5 </head> 6 <body bgcolor="gray"> 7 <p>This is a paragraph.</p> 8 <a href="https://www.domain.com">This is a link.</a> 9 <img src="image.jpg" alt="Image"> 10 </body> 11 </html>
[change | change source]
|Tag name||Name||Function||Code Example|
||Doctype||Defines the Document type|
||HTML||Defines an HTML document|
||Head||Contains any code that is not used to display elements on the webpage|
||Title||Defines the title of the webpage (shown on the tab) and is entered within the <head>|
||Body||Contains the visible elements of the webpage|
||Headings||Headings of various sizes (<h1> being the largest)|
||Paragraph||Defines a paragraph of text|
||Anchor||Creates active links to other web pages|
<a href="www.domain.com">Visit our site</a>
||Image||Displays an image on the page|
<img src="ImageUrl" alt="Text displayed if image is not available">
||Break||Inserts a single line break|
Text <br> Text
||Center||Moves content to the center of the page|
Other websites[change | change source]
- HTML Source: Beginner's HTML Tutorial - a site of tutorials aimed at web design advanced.
- HTML Dog is a site that helps new writers write good, simple HTML and make it look good with CSS.
- w3schools a site of web technologies tutorials
- HTML5 Certification
References[change | change source]
- "Why HTML is Not a Programming Language". Syracuse University. Retrieved 27 June 2016.