03. HTML for beginner || HTML Introduction || Free Web Development Course [2022]
1. HTML Comment Tag
2. How To Add a Favicon in HTML
You can use any image you like as your favicon. You can also create your own
favicon on sites like https://www.favicon.io
A favicon image is displayed to the left of the page title in the browser tab
To add a favicon to your website, either save your favicon image to the root
directory of your web server, or create a folder in the root directory called
images, and save your favicon image in this folder. A common name for a
favicon image is "favicon.ico".
Next, add a link element to your "index.html" file, after the title
element, like this:
3. Using The class Attribute
The class attribute is often used to point to a class name in a style sheet. It
can also be used by JavaScript to access and manipulate elements with the
specific class name.
In the following example, we have three div elements with a class attribute
with the value of "city". All of the three div elements will be styled equally
according to the .city style definition in the head section:
Example
4. Using The id Attribute
The id attribute specifies a unique id for an HTML element. The value of the id
an attribute must be unique within the HTML document.
The id attribute is used to point to a specific style declaration in a style sheet.
It is also used by JavaScript to access and manipulate the element with the
specific id.
The syntax for id is: write a hash character (#), followed by an id name. Then,
define the CSS properties within curly braces {}.
In the following example, we have an h1 element that points to the id name
"myHeader". This h1 element will be styled according to the #myHeader style
definition in the head section:
Example
TASK: Use the fav icon on your website and use class & ID for color text.
Make sure you have completed your task and posted it on our Facebook group!
Facebook Group: https://fb.com/groups/learnwithdevelopertawfik
For more subscribe to our channel.
Related Keywords:
⨀ HTML for beginner
⨀ What is HTML
⨀ How to learn HTML
⨀ HTML Basic
⨀ HTML Introductions
⨀ Write HTML Code
⨀ Free course
⨀ Web developer
⨀ Website front-end work
⨀ How to learn
⨀ HTML Class
⨀ HTML ID
⨀ Start Creating Website
⨀ HyperText Markup Language