HTML
HTML
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
HTML HEADINGS
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
LINKS
Image Hyperlink
<a href=" https://www.dtcc.edu"><img src=“dtcc.jpg" width="82" height="86" title=“DTCC" alt=""></a>
BUTTONS
Button usually used within a FORM to trigger corresponding script such as perl. Javascript, php, etc…
<button>Click me</button>
LISTS
<ul>
<li>Cobol</li>
<ul><li>sugar</li></ul>
HTML lists are defined with the <li>Java</li>
<ul> (unordered/bullet list) or the <li>PHP</li>
</ul>
<ol> (ordered/numbered list) tag,
<ol>
followed by <li> tags (list items): <li>Coke</li>
<li>Sprite</li>
<li>Pepsi</li>
</ol>
ELEMENTS
text-align property defines the horizontal text alignment for an HTML element
HTML uses elements like <b> and <i> for formatting <p>This text is normal.</p>
output, like bold or italic text.
<p><strong>This text is strong.</strong></p>
Formatting elements were designed to display special types <i>This text is italic</i>
of text: <h2>HTML <small>Small</small> Formatting</h2>
<h2>HTML <mark>Marked</mark> Formatting</h2>
<b> - Bold text <del> - Deleted text <p>My favorite color is <del>blue</del> red.</p>
<p>This is <sub>subscripted</sub> text.</p>
<strong> - Important text <ins> - Inserted text
<p>This is <sup>superscripted</sup> text.</p>
<i> - Italic text <sub> - Subscript text
<mark> - Marked text
<sup> - Superscript text
<small> - Small text
QUOTATION & CITATION ELEMENTS
<h1 style="background-color:Tomato;">Tomato</h1>
<h1 style="background-color:Orange;">Orange</h1>
<h1 style="background-color:DodgerBlue;">DodgerBlue</h1>
<h1 style="background-color:MediumSeaGreen;">MediumSeaGreen</h1>
<h1 style="background-color:Gray;">Gray</h1>
<h1 style="background-color:SlateBlue;">SlateBlue</h1>
<h1 style="background-color:Violet;">Violet</h1>
<h1 style="background-color:LightGray;">LightGray</h1>
HTML STYLES - CSS
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
EXTERNAL CSS
<!DOCTYPE html>
<html> In the styles.css file, it contains the following
<head>
<link rel="stylesheet" href="styles.css">
</head> body {
<body> background-color: powderblue;
}
<h1>This is a heading</h1> h1 {
<p>This is a paragraph.</p> color: blue;
}
</body> p{
</html> color: red;
}
CSS BORDER
p{
border: 1px solid powderblue;
}
CSS PADDING
The CSS padding property defines a padding (space) between the text and the border
p{
border: 1px solid powderblue;
padding: 30px;
}
CSS MARGIN
p{
border: 1px solid powderblue;
margin: 50px;
}
ID ATTRIBUTE
To define a specific style for one special element, add an id attribute to the element:
<style>
#p01 {
color: blue;
}
</style>
Using iframe...
<iframe width="420" height="315"
src="https://www.youtube.com/embed/RlZ9rXbrJqM">
</iframe>