Professional Documents
Culture Documents
HTML Cheat Sheet - Scaler Topics
HTML Cheat Sheet - Scaler Topics
HTML Cheat Sheet - Scaler Topics
<address> </address>
HTML
CHEAT SHEET
<section></section>
<td rowspan=?>
Structure
<body> </body>
<head> </head>
Contains information
about the website
<html> </html>
Overall document
structure <body> </body>
Contains the display
part.
</head>
Title: HTML Cheat Sheet
01 Cheatsheet
Layout
<header> <nav>
<section> <article>
<aside>
<footer>
Defines a section of a web page that Defines the footer section of a web page
is separate from the main content. or a section of a page.
<header>
<nav>
<header>
<article>
<section> <aside>
<header>
<article>
<footer>
02 Cheatsheet
Formatting
<div> </div>
<br>
03 Cheatsheet
Text Tags
Hello
This is Preformatted Text in different lines.
It is written exactly like this in the code.
<pre>
Hello
This is Preformatted Text in different lines.
It is written exactly like this in the code.
This is heading 1 </pre>
This is heading 2
This is heading 3 h1 to h6 tags from top to bottom
IP Programming
This is heading 5
This is heading 6
NITI Aayogʼs goal is to “To evolve a shared vision of national development priorities with the active involvement of States.” q tag: <q> To evolve ... </q>
04 Cheatsheet
<tt> </tt> <q> </q>
<code> </code>
<cite> </cite>
<address> </address>
<strong> </strong>
05 Cheatsheet
The address of David Johnson is:
Visit:
address tag: <address>
3rd Floor, Narayan Building, Indore
Visit: ...
Follow at instagram @davidjohnson </address>
Call at: 9820382712
Official Website: www.davidjohnson.com
#include using namespace std; int main() { cout << "Hello World!"; return 0; }
Code tag:
<code>
#include <iostream>
using namespace std;
int main( ) {
cout <<”Hello World!”;
return 0;
}
</code>
06 Cheatsheet
Lists
<li>Coffee</li> Coffee
Tea
Milk
<ul>
<li>...</li>
<li>...</li>
<li>...</li>
</ul>
1. Coffee <li>Coffee</li>
2. Tea
3. Milk
<ol>
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
07 Cheatsheet
Graphical
height
width
08 Cheatsheet
<img src="URL" align=?>
align= “center”
NOT SUPPORTED
<img <img
src="mountains.jpg" src="mountains.jpg"
align="left" align="right"
alt="River Scenery" alt="River Scenery"
style="width: 450px; height: 300px" style="width: 450px; height: 300px"
/> />
09 Cheatsheet
Links
<a href="#NAME">clickable text</a>
Section 1
This is Section 1. Lorem ipsum dolor sit amet consectetur adipisicing
<h1 id= “section1”>Section 1</h1>
elit. Perferendis consectetur est eveniet itaque fugiat laboriosam
points to
Section 2
This is Section 2. Lorem ipsum dolor sit amet consectetur adipisicing <h2 id= “section2”>Section 2</h2>
elit. Perferendis consectetur est eveniet itaque fugiat laboriosam
10 Cheatsheet
<a href="mailto:EMAIL_ADDRESS">
clickable text</a>
Send email
11 Cheatsheet
Tables
Defines a table, which is used to Defines a header cell within a table row,
display data in rows and columns. typically used for column headings.
Defines a row within a table. Defines a table cell that spans the
specified number of rows.
<td> </td>
<td colspan=?>
Defines a cell within a table row. Defines a table cell that spans the
specified number of columns.
Eve Jackson 57
Chris 56
Hemsworth
<td> Chris </td> Robert 45
12 Cheatsheet
Forms
<input type="checkbox"
name=? value=?>
<input type="radio"
name=? value=?>
13 Cheatsheet
Student Details Form
<input type="text">
Name:
Any comments..
<textarea rows="10"
cols="30">
Any comments..
</textarea>
14 Cheatsheet