Anda di halaman 1dari 2

SH EET

Page 1 of 2
EAT
CH learntoprogram .tv
L
T M
H
Cheat Sheet
Basic HTML Document Outline: Document Structure
<html> <a href="url"> Hyperlink to another location.
<head>
<title>HTML Doc</title> <h1>,<h2>,<h3>, Set text as heading, determine size.
</head> <h4>,<h5>,<h6>
<body> <div> Define a division or section of an HTML
<div> document, used to group block-elements for
<h1>HTML Document</h1> formatting with CSS.
<p>This is an HTML document!</p>
</div> <span> Group inline elements, used to add a hook to
</body> text. No formatting by itself.
</html> <p> Define a paragraph.
HTML Document Outline <br> Define a line break.
<hr> Define a horizontal rule or thematic break.
<html> HTML document.
<head> Document header information. Lists
<body> Document body.
<ol> Define an ordered list, or a list that is ordered
numerically or alphabetically.
Page Information
<ul> Define an unordered list.
<meta> Metadata about the document. Will not be <li> Define an item on an ordered or unordered
visible, but is machine parsable.
list.
<title> Define the title of the document, and is <dl> Define a description list, used with <dt> and
required.
<dd>
<link> Define a link between the HTML and an <dt> Define a description term, or the name of an
external resource, usually a stylesheet.
item in a description list.
<style> Define style information. <dd> Define a description of an item in a
<script> Define a client-side script. description list.
SH EET
Page 2 of 2
EAT
CH learntoprogram .tv
L
T M
H
Forms <tr> Define a row in an HTML table.
<form> Create a form that receives user input. <th> Define a cell in a table row as a header
<fieldset> Group related form elements together. element.
<label> Define the label for an <input> form element. <td> Define a cell in a table row as a data element.
<input> Define a field where a user can enter data. Text Formatting
<select> Create a drop-down list in a form.
<strong> Define important text.
<optgroup> Group related options in a drop-down list.
<em> Define emphasized text.
<option> Define an option in a drop-down list.
<blockquote> Define text quoted from another source.
<textarea> Create a text input field within a form.
<q> Define a short quotation.
<button> Create a clickable button.
<abbr> Define an abbreviation.
Tables <address> Define the contact information for the author
of a document or article.
<table> Define an HTML table consisting of one or
more <tr>, <th>, and <td> elements. <pre> Define pre-formatted, text that preserves
spaces and line-breaks.
<caption> A table caption.
<dfn> Set the defining instance of a term.
<thead> Define table header content. Must be used
after <table>, <caption>, and <colgroup> but <code> Define a piece of computer code.
before <tbody>, <tfoot>, and <tr>. <cite> Define a citation of the title of a work.
<tbody> Define the body of a table. Must be used after <sub> Define subscript text.
<table>, <caption>, <colgroup>, or <thead> <sup> Define superscript text.
elements.
<bdo> Set bi-directional override, making text
<colgroup> Group columns together for formatting. direction reverse.
<col> Specify properties for individual columns
within a <colgroup>

Anda mungkin juga menyukai