Download pptx - HTML tags and attributes

Transcript
Page 1: HTML tags and attributes

HTML tags and attributes

By:Dennis Champagne

Page 2: HTML tags and attributes

List of tags• <!-- -->• <!DOCTYPE>• <a>• <applet>• <area>• <audio>• <b>• <base>• <big>• <blockquote>• <body>• <br>• <button>• <center>• <code>• <del>• <div>• <em>

• <embed>• <font>• <form>• <frame>• <frameset>• <h1>• <h2>• <h3>• <h4>• <h5>• <h6>• <head>• <hr>• <html>• <i>• <iframe>• <img>• <ins>

• <li>• <map>• <meta>• <noframes>• <noscript>• <object>• <ol>• <p>• <param>• <pre>• <q>• <s>• <samp>• <script>• <small>• <video>• <title>• <span>

• <strike>• <strong>• <style>• <sub>• <sup>• <table>• <tbody>• <tfoot>• <td>• <thead>• <th>• <tr>• <u>• <var>• <wbr>

Page 3: HTML tags and attributes

<!-- --> (comment)

• Used to insert a comment into the code

Page 4: HTML tags and attributes

<!DOCTYPE>

• Used to indicate if file is using html 5

Page 5: HTML tags and attributes

<a> (anchor)

• Used to mark a location in a page. Can be used to link to another page also.

Page 6: HTML tags and attributes

<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

Page 7: HTML tags and attributes

<area>

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

Page 8: HTML tags and attributes

<audio>

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

Page 9: HTML tags and attributes

<b>

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

Page 10: HTML tags and attributes

<base>

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

Page 11: HTML tags and attributes

<big>

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

Page 12: HTML tags and attributes

<blockquote>

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

Page 13: HTML tags and attributes

<body>

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

Page 14: HTML tags and attributes

<br>

• Defines a break in the line

Page 15: HTML tags and attributes

<button>

• Used to create a button

Page 16: HTML tags and attributes

<center>

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

Page 17: HTML tags and attributes

<code>

• Used to mark computer code

Page 18: HTML tags and attributes

<del>

• Used to put a strikethrough on text

Page 19: HTML tags and attributes

<div>

• Defines a division in an HTML page

Page 20: HTML tags and attributes

<em>

• Used to emphasize text

Page 21: HTML tags and attributes

<embed>

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

Page 22: HTML tags and attributes

<font>

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

Page 23: HTML tags and attributes

<form>

• Used to create an area for the client to enter text

• Should be used with <input> and <button>

Page 24: HTML tags and attributes

<frame>

• Added frames to a HTML page• Removed because of the severity of damage

usually caused• Went with <frameset> and <noframe>

Page 25: HTML tags and attributes

<frameset>

• Was used to define a set of frames• Removed because of severity of damage

caused by typical use• Went with <frame> and <noframe>

Page 26: HTML tags and attributes

<h1> - <h6>

• Used to make text into a heading• Six different sizes, denoted by the number• Lowest number denotes highest importance

Page 27: HTML tags and attributes

<head>

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

and <!--comments-->

Page 28: HTML tags and attributes

<hr>

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

Page 29: HTML tags and attributes

<html>

• THE essential tag• Denotes a HTML page

Page 30: HTML tags and attributes

<i>

• Used to make text itialic

Page 31: HTML tags and attributes

<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

Page 32: HTML tags and attributes

<img>

• Used to add an image• Added usage when used with <map> and

<area> or with <a>

Page 33: HTML tags and attributes

<ins>

• Used to insert text

Page 34: HTML tags and attributes

<li>

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

Page 35: HTML tags and attributes

<map>

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

Page 36: HTML tags and attributes

<meta>

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

much more

Page 37: HTML tags and attributes

<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>

Page 38: HTML tags and attributes

<noscript>

• Used to show text when a browser does not support script

• Similar to <noframes>• Used with <script>

Page 39: HTML tags and attributes

<object>

• Used to define an embedded object in a HTML page

• Similar to <embed> or the removed <applet>• Works with <param>, like <applet> did

Page 40: HTML tags and attributes

<ol>

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

Page 41: HTML tags and attributes

<p>

• Used to define a paragraph

Page 42: HTML tags and attributes

<param>

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

object

Page 43: HTML tags and attributes

<pre>

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

Page 44: HTML tags and attributes

<q>

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

Page 45: HTML tags and attributes

<s>

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

Page 46: HTML tags and attributes

<samp>

• Used to define s