html
html
Code
<!DOCTYPE html>
<html>
<body>
</body>
</html>
HTML Headings
• <p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML Links
• <button>Click me</button>
HTML Lists
• HTML lists are defined with the <ul> unordered/bullet
list) or the <ol> (ordered/numbered list) tag, followed
by <li> tags (list items)
• <ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
HTML Background Color
• <body style="background-color:powderblue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
HTML Text Color
• <h1 style="font-family:verdana;">This is a
heading</h1>
<p style="font-family:courier;">This is a
paragraph.</p>
HTML Text Size
• <!DOCTYPE html>
• <html>
• <body>
• </body>
• </html>
Text
Formatting elements were designed to display special types of text:
•<b> - Bold text
•<strong> - Important text
•<i> - Italic text
•<em> - Emphasized text
•<mark> - Marked text
•<small> - Small text
•<del> - Deleted text
•<ins> - Inserted text
•<sub> - Subscript text
•<sup> - Superscript text
HTML bold and strong
• <!DOCTYPE html>
• <html>
• <body>
• </body>
• </html>
• Strong
• <strong>This text is strong</strong>
HTML Colors
• In HTML, a color can be specified by using a color name:
• Tomato
• Orange
• DodgerBlue
• MediumSeaGreen
• Gray
• SlateBlue
• Violet
• LightGray
continue
• <!DOCTYPE html>
• <html>
• <body>
• <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>
• </body>
• </html>