HTML tags and attributes By Dennis Champagne List

HTML tags and attributes By: Dennis Champagne

List of tags • • • • • <!-- --> <!DOCTYPE> <applet> <area> <audio> <base> <big> <blockquote> <body> <button> <center> <code> <del> <div> <em> • • • • • <embed> <font> <form> <frameset> <h 1> <h 2> <h 3> <h 4> <h 5> <h 6> <head> <hr> <html> <iframe> <img> <ins> • • • • • <li> <map> <meta> <noframes> <noscript> <object> <ol> <param> <pre> <q> <samp> <script> <small> <video> <title> <span> • • • • <strike> <strong> <style> <sub> <sup> <table> <tbody> <tfoot> <td> <thead> <th> <tr> <u> <var> <wbr>

<!-- --> (comment) • Used to insert a comment into the code

<!DOCTYPE> • Used to indicate if file is using html 5

<a> (anchor) • Used to mark a location in a page. Can be used to link to another page also.

<applet> • • • DEPRECATED Used to insert java applets into a webpage Similar to <embed> and <object> Used with <param> Replaced by <object> and <embed> in HTML 5

<area> • The <area> tag is used to create a link on a section of an image

<audio> • The <audio> tag is used to insert audio files into a HTML page

<b> • The <b> tag is used to make text bold • Suggested that CSS is used instead

<base> • The <base> tag is used to define the base URL of the document

<big> • The big tag was used to make text larger • Deprecated and removed in HTML 5

<blockquote> • The blockquote tag is used to mark a quote from another cite

<body> • The body tag is used to create the body of the HTML document

• Defines a break in the line

<button> • Used to create a button

<center> • Used to center text • Deprecated and remove as of HTML 5

<code> • Used to mark computer code

<del> • Used to put a strikethrough on text

<div> • Defines a division in an HTML page

<em> • Used to emphasize text

<embed> • Used to embed objects into a HTML document • Similar to <object>

<font> • Used to change font • Deprecated and removed in HTML 5

<form> • Used to create an area for the client to enter text • Should be used with <input> and <button>

<frame> • Added frames to a HTML page • Removed because of the severity of damage usually caused • Went with <frameset> and <noframe>

<frameset> • Was used to define a set of frames • Removed because of severity of damage caused by typical use • Went with <frame> and <noframe>

<h 1> - <h 6> • Used to make text into a heading • Six different sizes, denoted by the number • Lowest number denotes highest importance

<head> • Used to add a head to the page • The head is used mainly for <script>, <meta>, and <!--comments-->

<hr> • Used to make a horizontal rule • Similar to

<html> • THE essential tag • Denotes a HTML page

<i> • Used to make text itialic

<iframe> • • Used to add an inline frame Easier to use than frames Unlike frames, was NOT removed in html 5 Can display a different webpage inside

<img> • Used to add an image • Added usage when used with <map> and <area> or with <a>

<ins> • Used to insert text

<li> • Defines a list item • Used inside <ul> or <ol>

<map> • Used to map areas of an image • Used with <area> and <img>

<meta> • Used to store metadata (data about data) • Used inside <head> • Can denote author, description, keywords, and much more

<noframes> • Was used to show text when a browser did not support frames • Was used with <frame> <frameset> • Removed in HTML 5 • Similar to <noscript>

<noscript> • Used to show text when a browser does not support script • Similar to <noframes> • Used with <script>

<object> • Used to define an embedded object in a HTML page • Similar to <embed> or the removed <applet> • Works with <param>, like <applet> did

<ol> • Used to define an ordered list • Similar to <ul> • Used with <li>

<p> • Used to define a paragraph

<param> • Was used with <applet> before html 5 • Now used with <embed> and <object> • Used to define parameters for an embedded object

<pre> • Was used to define preformated text • Replaced with CSS scripting language • Removed in HTML 5

<q> • Used to define a short quote • Adds quotations around the text inside • For long quotes, use <blockquote>

<s> • • Used to put a strikethrough on text DEPRECATED in HTML 4 REMOVED in HTML 5 Use CSS scripting language instead

<samp> • Used to define s
- Slides: 46