Академический Документы
Профессиональный Документы
Культура Документы
Every HTML document must contain the following tag elements. Each tag has a different
meaning
<head> and </head> This tag provides the basic information about the document
<h1>HTML Unorder list Tag Example</h1> <h1>HTML order list Tag Example</h1>
<ol type=”1”>
<ul style="list-style- <li>first item</li>
type:disc"> <li>second item</li>
<li>first item</li> <li>third item</li>
<li>second item</li> </ol>
<li>third item</li> </p>
</ul> </body>
</html>
</body>
</html>
HTML Styles
Background Colour Background Colour 2
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>After Applying HTML Style</title> <title>After Applying HTML Style</title>
</head> </head>
<body style="background-color:yellow;"> <body style="background-color: rgba(0, 0, 0, 0.8);">
<h1>Learning about HTML styles</h1>
<h1>Learning about HTML styles</h1> <p>HTML is super fun and easy to learn.</p>
<p>HTML is super fun and easy to learn.</p> </body>
</body> </html>
</html>
Text colour Font Size
<!DOCTYPE html> <h1 style="font-size:50px;">I am 60px
<html> Font size</h1>
<head> <h2 style="font-size:40px;">I am 40px
<title> HTML Style</title> Font size</h2>
</head> <h3 style="font-size:20px;">I am 20px
<body> Font size</h3>
<h1 style="color:green">Styled with green color</h1> <p style="font-size:10px;">I am 10px
<h2 style="color:red">Styled with red color.</h2> Font size</p>
<h3 style="color:orange">Styled with orange color</h3>
<p style="color:blue">Styled with blue color</p>
Font Alignment
<h1 style="text-align:center">Centered
</body>
Aligned</h1>
</html>
<h2 style="text-align:right">Right
Aligned</h2>
<h1 style="text-align:left">Left
Aligned</h1>
Alignment and colour
<h1 style="text-align:center;color:red;">Centered
Aligned</h1>
<h2 style="text-align:right;color:blue;">Right Aligned</h2>
<h1 style="text-align:left;color:green;">Left Aligned</h1>
<!DOCTYPE html>
<b> - Bold text
<html> <strong> - Important text
<body> <i> - Italic text
<em> - Emphasized text
<p><b>This text is bold</b></p>
<p><i>This text is italic</i></p> <mark> - Marked text
<p>This is<sub> subscript</sub> and <small> - Small text
<sup>superscript</sup></p> <del> - Deleted text
<ins> - Inserted text
</body>
</html> <sub> - Subscript text
<sup> - Superscript text
Local Links
<!DOCTYPE html>
<html>
<body>
<h2>Local Links</h2>
<p><a href="Flower.jpg">HTML Images</a> Click here to view flower image.</p>
</body>
</html>
Image as a Link
<!DOCTYPE html>
<html>
<body>
<h2>Image Links</h2>
<p>The image is a link. You can click on it.</p>
<a href="default.asp">
<img src="refreshlogo.gif" alt="HTML tutorial" style="width:42px;height:42px;border:0">
</a>
</body>
</html>
HTML Images
Insert an image with defined height and width
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Floating image
<!DOCTYPE html>
<html>
<body>
</body>
</html>
</body>
</html>
Ex:1
Ex 02:
Ex 03: