Docsity

HTML and CSS Cheat Sheet, Cheat Sheet of Programming Languages

Toggle sidebar
bg1
Tag Description Tag Description
<!-- … --> comment <dt> term/name in a description list
<!DOCTYPE> document type <em> emphasized text
<a> hyperlink <embed> container for an external (non-HTML) application
<area> area inside an image-map <fieldset> groups related elements in a form
<article> article <figcaption> caption for a <figure> element
<aside> content outside of the main page content <figure> self-contained content
<audio> sound content <footer> footer for a document or section
<b> bold text <form> HTML form for user input
<base> base URL for all relative URLs in a document <h1> to <h6> HTML headings (<h1> - largest, <h6> - smallest)
<blockquote> long quotation <head> information about the document
<body> the document's body <header> header for a document or section
<br> single line break <hgroup> group of headings
<button> clickable button <hr> thematic change in the content
<canvas> graphic area <html> root of an HTML document
<caption> table caption <i> italic text
<cite> title of a work <iframe> inline frame
<code> computer code text <kbd> keyboard input
<col> attributes for table columns <keygen> key-pair generator field (for forms)
<colgroup> groups of table columns <label> label for an <input> element
<datalist> drop-down list <legend> caption for a <fieldset> element
<dd> description of a term in a description list <li> list item
<del> deleted text <link> relationship between a document and an external
resource
<details> additional details that the user can view or hide <main> main content of a document
<dialog> dialog box or window <map> client-side image-map
<div> section in a document <mark> marked/highlighted text
<dl> description list <menu> list/menu of commands
HTML and CSS Cheat Sheet
www.w3schools.com/tags/
www.w3schools.com/cssref/
pf2

Partial preview of the text

Download HTML and CSS Cheat Sheet and more Cheat Sheet Programming Languages in PDF only on Docsity!

Tag Description Tag Description

comment term/name in a description list

document type emphasized text

hyperlink container for an external (non-HTML) application

area inside an image-map groups related elements in a form

article caption for a element

content outside of the main page content self-contained content

sound content footer for a document or section

bold text HTML form for user input

base URL for all relative URLs in a document to HTML headings ( - largest, - smallest)

long quotation information about the document

the document's body header for a document or section


single line break group of headings

clickable button thematic change in the content

graphic area root of an HTML document

table caption italic text

title of a work inline frame

computer code text keyboard input

attributes for table columns key-pair generator field (for forms)

groups of table columns label for an element

drop-down list caption for a element

description of a term in a description list list item

deleted text

relationship between a document and an external resource

additional details that the user can view or hide main content of a document

dialog box or window client-side image-map

section in a document marked/highlighted text

description list list/menu of commands

HTML and CSS Cheat Sheet

www.w3schools.com/tags/

www.w3schools.com/cssref/

Tag Description Tag Description

metadata about an HTML document header content in a table

navigation links date/time

embedded object title for the document <ol> ordered list <tr> row in a table

<optgroup> group of related options in a drop-down list <u> underlined text

<option> option in a drop-down list <ul> unordered list

<output> result of a calculation <var> variable

<p> paragraph <video> video or movie

<param> parameter for an object CSS Selectors

<pre> preformatted text (^) .class selects all elements with class = "name"

<progress> progress of a task #id selects the element with id = "name"

<img> image * selects all elements

<input> input control element selects all < element> elements

<ins> text that has been inserted into a document General

<q> short quotation color color of text

<script> client-side script span inline formatting

<section> section in a document Background

<select> drop-down list background sets all the background properties in one declaration

<source> media resources background-color sets the background color of an element

<span> section in a document background-image sets the background image of an element

<strong> strong text Text

<style> style information for a document letter-spacing

increases or decreases the space between characters

<sub> subscripted text text-align specifies the horizontal alignment of text

<summary> visible heading for a <details> element Font

<sup> superscripted text font (^) sets all the font properties in one declaration

<table> table font-family specifies the font family for text

<tbody> body content in a table font-style specifies the font style for text

<td> cell in a table Borders

<textarea> multiline input control (text area) border sets all the border properties in one declaration

<tfoot> footer content in a table border-width specifies the width of the border

<th> header cell in a table border-color color of the border