By the end of this tutorial you will:
HTML has the following tags for quoting or citing text in your page:
• <blockquote> – for longer quotes (indented text)
• <q> – for short inline quotes
• <cite> – to define the source or author
• <abbr> – for abbreviations
<blockquote>
HTML stands for HyperText Markup Language.
</blockquote>
<p>Tim Berners-Lee said, <q>The web is for everyone!</q></p>
<p><cite>– Tim Berners-Lee</cite></p>
<p><abbr title="World Wide Web">WWW</abbr> is a system of interlinked hypertext documents.</p>
Quick Recap:
There are several ways to add color using HTML:
1. Named Colors (like red, blue, green)
2. RGB Colors (rgb(255, 0, 0))
3. HEX Colors (#ff0000)
4. HSL Colors (hsl(0, 100%, 50%))
<p style="color:red;">This is red text using the color name.</p>
<p style="color:rgb(0, 128, 0);">This is green text using RGB.</p>
<p style="color:#0000ff;">This is blue text using HEX code.</p>
<p style="color:hsl(240, 100%, 50%);">This is blue using HSL.</p>
Links are used to connect different web pages. You can create links by simply using the <a> tag.
<a href="https://www.google.com" target="_blank">Visit Google</a>
You can also use internal links or bookmarks:
<a href="#about">Go to About Section</a>
<h2 id="about">About Us</h2>
You can style link colors with CSS:
a:link { color: blue; }
a:visited { color: purple; }
a:hover { color: red; }
a:active { color: green; }
Quick Recap:
You can display images by using the <img> tag. You can also create more advanced options like image maps as well as using the <picture> element.
<img src="image.jpg" alt="Sample Image" width="300" height="200">
Background Image Example:
<body style="background-image:url('bg.jpg'); background-size:cover;">
Picture Element Example:
<picture>
<source media="(min-width:650px)" srcset="large.jpg">
<source media="(min-width:465px)" srcset="medium.jpg">
<img src="small.jpg" alt="Sample Image">
</picture>
Favicon Example (in <head>):
<link rel="icon" type="image/x-icon" href="favicon.ico">
Quick Recap:
The <head> section contains information about the page, not visible on the screen. The <title> tag defines the title shown in the browser tab.
<!DOCTYPE html>
<html>
<head>
<title>My Awesome Page</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Welcome!</h1>
</body>
</html>
In this lesson, you learned how HTML builds a page with elements, attributes, and tags, and wrote some headings, paragraphs, and inline styles. You also learned how to write a comment and have a better understanding of what to avoid doing when building HTML.
– LeetCode HTML Practice: https://leetcode.com/problemset/all/?topicSlugs=html
– W3Schools HTML Links and Images: https://www.w3schools.com/html/html_links.asp
– W3Schools HTML Colors: https://www.w3schools.com/html/html_colors.asp
Both are methods of defining colors, but while RGB uses numbers (for example: rgb(255,0,0)) HEX uses hexadecimal values (#ff0000).
It describes the image for users in the event it cannot load, as well as for screen readers for accessibility.
The small icon displayed in the browser tab next to the title of the page.
Copyright © 2025 Niotechone Software Solution Pvt. Ltd. All Rights Reserved.