Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

HTML Quick Cheat Sheet: essential notions, Cheat Sheet of Programming Languages

In this quick cheat sheet you find essential notions of HTML, the standard markup language for Web pages.

Typology: Cheat Sheet

2019/2020

Uploaded on 10/09/2020

dylanx
dylanx 🇺🇸

4.7

(21)

287 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
SYNTAX
Basic
HTML: <tag></tagclose> or <tag>
XHTML: <tag></tagclose> or <tag />
With an Attribute
HTML: <tag attribute="?">
XHTML: <tag attribute="?" / >
BASIC
<body> the visible portion of the page
<head> portion not displayed on the page
<html> creates a html page
<title> shows the page name in the title bar
LINKS
<img src="URL">* displays an image
<a href="#?">* link to anchor in current
document
<a href="URL">* link to another
document
<a href="URL#?">* link to anchor in
another document
<a
href="mailto:EMAIL">* email link
STRUCTURE
<br>* line break
<code> source code listing
<div> Formats structure or block of text
<em> italic text
<h1>...<h6> page headings from largest to
smallest
<hr> horizontal rule
<p> paragraph
<pre> preformatted text
<span> Inline formatting
<strong> bold text
<sub> subscript text
<sup> superscript text
FRAMES
<frame> defines a single frame
<frameset> frame document
<iframe> inline frame
HEAD
<link rel="stylesheet" href="?"
type="text/css"> * external CSS
link
<script language="Javascript"
type="text/javascript"> embedded
javascript
<meta http-equiv="content-type"
content="?"; charset="?">* meta
information
TABLES
<caption> table caption
<table> defines a table
<tbody> body section of the table
<td> table cell
<td
colspan="?"> number of columns cell spans
<td
rowspan="?"> number of rows cell should
spans
<tfoot> footer section of the table
<th> table header cells
<th
colspan="?"> number of columns table
header cell spans
<thead> the header section of the table
<tr> table row
LISTS
<dd> definition
<dl> definition list
<dt> definition term
<li> item in a list
<ol> ordered list
<ul> unordered list
FORMS
<form> defines a form
<fieldset> group of related form items
<input
type="?">* form element (see input types
at right)
<option> menu item in a select box
<select> drop-down list
<textarea> multi-row text area
SPECIAL CHARACTERS
&nbsp; non-breaking space
&quot; quotation mark
&amp; ampersand
&lt; less than sign
&gt; greater than sign
HTML CHEAT SHEET
* Note: Does not require a closing tag
Template
<html>
<head>
<title></title>
Meta Tags
CSS
JavaScript
</head>
<body>
Content
</body>
</html>
CSS
Media
all
handheld
print
projection
screen
Meta
Types
http-equiv
name
Lists
<ol>
<li>
</li>
</ol>
<ul>
<li>
</li>
</ul>
Table
<table>
<thead>
<tr>
<th>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
</td>
</tr>
</tfoot>
</table>
Input
Types
button
checkbox
file
hidden
image
password
radio
reset
submit
text

Partial preview of the text

Download HTML Quick Cheat Sheet: essential notions and more Cheat Sheet Programming Languages in PDF only on Docsity!

SYNTAX

Basic HTML: or XHTML: or With an Attribute HTML: XHTML: <tag attribute="?" / >

BASIC

the visible portion of the page portion not displayed on the page creates a html page shows the page name in the title bar <h2>LINKS</h2> <p><img src="URL">* displays an image <a href="#?">* link to anchor in current document <a href="URL">* link to another document <a href="URL#?">* link to anchor in another document <a href="mailto:EMAIL">*</p> <p>email link</p> <h2>STRUCTURE</h2> <p><br>* line break <code> source code listing</p> <div> Formats structure or block of text <em> italic text <h1>...<h6> page headings from largest to smallest <hr> horizontal rule <p> paragraph <pre> preformatted text <span> Inline formatting <strong> bold text <sub> subscript text <sup> superscript text <h2>FRAMES</h2> <p><frame> defines a single frame <frameset> frame document</p> <iframe> inline frame <h2>HEAD</h2> <p><link rel="stylesheet" href="?" type="text/css"> *</p> <p>external CSS link</p> <script language="Javascript" type="text/javascript"> <p>embedded javascript <meta http-equiv="content-type" content="?"; charset="?">*</p> <p>meta information</p> <h2>TABLES</h2> <caption> table caption <table> defines a table <tbody> body section of the table <td> table cell <td colspan="?"> <p>number of columns cell spans</p> <p><td rowspan="?"></p> <p>number of rows cell should spans</p> <tfoot> footer section of the table <th> table header cells <th colspan="?"> <p>number of columns table header cell spans</p> <thead> the header section of the table <tr> table row <h2>LISTS</h2> <dd> definition <dl> definition list <dt> definition term <li> item in a list <ol> ordered list <ul> unordered list <h2>FORMS</h2> <form> defines a form <fieldset> group of related form items <input type="?">* <p>form element (see input types at right) <option> menu item in a select box <select> drop-down list</p> <textarea> multi-row text area <h2>SPECIAL CHARACTERS</h2> <p>  non-breaking space " quotation mark & ampersand < less than sign > greater than sign</p> <h2>HTML CHEAT SHEET</h2> <ul> <li>Note: Does not require a closing tag</li> </ul> <h2>Template</h2> <p><html> <head> <title> Meta Tags CSS JavaScript

_Content_

CSS

Media

all handheld print projection screen

Meta

Types

http-equiv name

Lists

Table

Input

Types

button checkbox file hidden image password radio reset submit text