-
-
Save codecademydev/71f523a5804e146f6bad116cc41c9924 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CheatSheet</title> | |
<link href="styles.css" type="text/css" rel="stylesheet"> | |
</head> | |
<header> | |
<h1>HTML CHEATSHEET</h1> | |
</header> | |
<body> | |
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0"> | |
<tr class="head"> | |
<td class="a" id="heading"><strong>Tag Name</strong></td> | |
<td class="b" id="heading"><strong>Tag Format(Opening,Closing)</strong></td> | |
<td class="c" id="heading"><strong>Tag Use</strong></td> | |
</tr> | |
<tr> | |
<td class="a">Html</td> | |
<td class="b"><strong><html>, </html></strong></td> | |
<td class="c">The <html> element, the root of an HTML document, should be added after the !DOCTYPE declaration.</td> | |
</tr> | |
<tr> | |
<td class="a">Head</td> | |
<td class="b"><strong><head>, </head></strong></td> | |
<td class="c">The <head> element contains general information about an HTML page that isn’t displayed on the page itself. </td> | |
</tr> | |
<tr> | |
<td class="a">Title</td> | |
<td class="b"><strong><title>, </title></strong></td> | |
<td class="c">The title is displayed in the browsers title bar or tab in which the HTML page is displayed.</td> | |
</tr> | |
<tr> | |
<td class="a">Body</td> | |
<td class="b"><strong><body>, </body></strong></td> | |
<td class="c">The <body> element represents the content of an HTML document.</td> | |
</tr> | |
<tr> | |
<td class="a">Paragraph</td> | |
<td class="b"><strong><p>, </p></strong></td> | |
<td class="c">To write a paragraph</td> | |
</tr> | |
<tr> | |
<td class="a">Division</td> | |
<td class="b"><strong><div>, </div></strong></td> | |
<td class="c">To division or a section in an HTML document.</td> | |
</tr> | |
<tr> | |
<td class="a">Header</td> | |
<td class="b"><strong><h1>, </h1></strong></td> | |
<td class="c">Heading of the document</td> | |
</tr> | |
<tr> | |
<td class="a">Span</td> | |
<td class="b"><strong><span>, </span></strong></td> | |
<td class="c">The <span> element is an inline container for text and can be used to group text for styling purposes.</td> | |
</tr> | |
<tr> | |
<td class="a">Emphasis</td> | |
<td class="b"><strong><em>, </em></strong></td> | |
<td class="c">Emphasizes text and browsers will usually italicize the emphasized text by default.</td> | |
</tr> | |
<tr> | |
<td class="a">Strong</td> | |
<td class="b"><strong><strong>, </strong></strong></td> | |
<td class="c">Highlights important, serious, or urgent text and browsers will normally render this highlighted text in bold by default.</td> | |
</tr> | |
<tr> | |
<td class="a">Break</td> | |
<td class="b"><strong><br>, no closing tag</strong></td> | |
<td class="c">Line break element will create a line break in text and is especially useful where a division of text is required, like in a postal address.</td> | |
</tr> | |
<tr> | |
<td class="a">Unordered list</td> | |
<td class="b"><strong><ul>,</ul></strong></td> | |
<td class="c">Unordered list element is used to create a list of items in no particular order.Each individual list item will have a bullet point by default.</td> | |
</tr> | |
<tr> | |
<td class="a">Ordered list</td> | |
<td class="b"><strong><ol>,</ol></strong></td> | |
<td class="c">Ordered list element creates a list of items in sequential order. Each list item appears numbered by default.</td> | |
</tr> | |
<tr> | |
<td class="a">List</td> | |
<td class="b"><strong><li>, </li></strong></td> | |
<td class="c">Used mention an item in the list</td> | |
</tr> | |
<tr> | |
<td class="a">Image</td> | |
<td class="b"><strong><img>, no closing tag</strong></td> | |
<td class="c">HTML image tag embed images in documents. The src attribute contains the image URL and is mandatory. </td> | |
</tr> | |
<tr> | |
<td class="a">Video</td> | |
<td class="b"><strong><video>, </video></strong></td> | |
<td class="c">It embeds a media player for video playback. The src attribute will contain the URL to the video. Adding the controls attribute will display video controls in the media player.</td> | |
</tr> | |
<tr> | |
<td class="a">Anchor</td> | |
<td class="b"><strong><a>, </a></strong></td> | |
<td class="c">The anchor element is used to create hyperlinks in an HTML document.</td> | |
</tr> | |
<tr> | |
<td class="a">Table</td> | |
<td class="b"><strong><table>, </table></strong></td> | |
<td class="c">In HTML,the element has content that is used to represent a two-dimensional table made of rows and columns.</td> | |
</tr> | |
<tr> | |
<td class="a">Table row</td> | |
<td class="b"><strong><tr>, </tr></strong></td> | |
<td class="c">The table row element,is used to add rows to a table before adding table data and table headings.</td> | |
</tr> | |
<tr> | |
<td class="a">Table data</td> | |
<td class="b"><strong><td>, </td></strong></td> | |
<td class="c">The table data element,can be nested inside a table row element, <tr>, to add a cell of data to a table.</td> | |
</tr> | |
<tr> | |
<td class="a">Table head</td> | |
<td class="b"><strong><thead>, </thead></strong></td> | |
<td class="c">The table head element,defines the headings of table columns encapsulated in table rows.</td> | |
</tr> | |
<tr> | |
<td class="a">Table body</td> | |
<td class="b"><strong><tbody>, </tbody></strong></td> | |
<td class="c">The table body element,is a semantic element that will contain all table data other than table heading and table footer content.</td> | |
</tr> | |
<tr> | |
<td class="a">Table foot</td> | |
<td class="b"><strong><tfoot>, </tfoot></strong></td> | |
<td class="c">The table footer element,uses table rows to give footer content or to summarize content at the end of a table.</td> | |
</tr> | |
<tr> | |
<td class="a">Table Heading</td> | |
<td class="b"><strong><th>, </th></strong></td> | |
<td class="c">The table heading element,is used to add titles to rows and columns of a table and must be enclosed in a table row element,<tr></td> | |
</tr> | |
<tr> | |
<td class="a">Form</td> | |
<td class="b"><strong><form>, </form></strong></td> | |
<td class="c">The HTML <form> element is used to collect and send information to an external source.</td> | |
</tr> | |
<tr> | |
<td class="a">Input</td> | |
<td class="b"><strong><input>, no closing tag</strong></td> | |
<td class="c">Input element is used to render a variety of input fields on a webpage including text fields, checkboxes, buttons, etc. </td> | |
</tr> | |
<tr> | |
<td class="a">Label</td> | |
<td class="b"><strong><label>, </label></strong></td> | |
<td class="c">Label element provides identification for a specific input based on matching values of the input id attribute and the label‘s for attribute.</td> | |
</tr> | |
<tr> | |
<td class="a">Select</td> | |
<td class="b"><strong><select>, </select></strong></td> | |
<td class="c">The select element can be used to create a dropdown list. A list of choices for the dropdown list can be created using one or more option elements.</td> | |
</tr> | |
<tr> | |
<td class="a">DataList</td> | |
<td class="b"><strong><datalist>, </datalist></strong></td> | |
<td class="c">When using an HTML input, a basic search/autocomplete functionality can be achieved by pairing an <input> with a <datalist>.</td> | |
</tr> | |
<tr> | |
<td class="a">Option</td> | |
<td class="b"><strong><option>, <option/> (or) <option /></strong></td> | |
<td class="c">Options that used to display in datalist or select etc.</td> | |
</tr> | |
<tr> | |
<td class="a">Textarea</td> | |
<td class="b"><strong><textarea>, </textarea></strong></td> | |
<td class="c">The textarea element is used when creating a text-box for multi-line input (e.g. a comment section).</td> | |
</tr> | |
<tr> | |
<td class="a">Figure</td> | |
<td class="b"><strong><figure>, </figure></strong></td> | |
<td class="c">The <figure> element is used to encapsulate media such as an image, diagram. or code snippet.</td> | |
</tr> | |
<tr> | |
<td class="a">Figure Caption</td> | |
<td class="b"><strong><figcaption>, </figcaption></strong></td> | |
<td class="c"> The <figcaption> element is used to describe the media encapsulated within the <figure> element.</td> | |
</tr> | |
<tr> | |
<td class="a">Section</td> | |
<td class="b"><strong><section>, </section></strong></td> | |
<td class="c"><section> defines elements in a document, such as chapters, headings, or any other area of the document with the same theme.</td> | |
</tr> | |
<tr> | |
<td class="a">Article</td> | |
<td class="b"><strong><article>, </article></strong></td> | |
<td class="c"><article> holds content that makes sense on its own such as articles, blogs, and comments. </td> | |
</tr> | |
<tr> | |
<td class="a">Aside</td> | |
<td class="b"><strong><aside>, </aside></strong></td> | |
<td class="c">The <aside> element is used to mark additional information that can enhance another element but isnt required in order to understand the main content.</td> | |
</tr> | |
<tr> | |
<td class="a">Frameset</td> | |
<td class="b"><strong><frameset>, </frameset></strong></td> | |
<td class="c">Used to define a frameset</td> | |
</tr> | |
<tr> | |
<td class="a">Frame</td> | |
<td class="b"><strong><iframe>, </iframe></strong></td> | |
<td class="c">The <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.</td> | |
</tr> | |
</table> | |
<h2>For Attributes References<a href="https://www.w3schools.com/tags/ref_attributes.asp" target="_blank"> click here</a></h2> | |
</body> | |
</html> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
background-image: url("https://image.freepik.com/free-photo/white-cloth-fabric-texture-background_1017-18219.jpg"); | |
} | |
table { | |
border-right: 4px solid black; | |
border-left: 4px solid black; | |
font-size: 18px; | |
} | |
h1{ | |
text-align: center; | |
} | |
h3{ | |
text-align: center; | |
} | |
.a{ | |
border-right: 2px solid black; | |
border-bottom: 2px solid black; | |
} | |
#heading{ | |
font-family: bold; | |
border-top: 4px solid black; | |
border-bottom: 4px solid black; | |
} | |
.b{ | |
border-right: 2px solid black; | |
border-bottom: 2px solid black; | |
} | |
.c{ | |
border-bottom: 2px solid black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment