What is a Logo?
The logo of a webpage is a very important element that represents the brand of the website.
It is usually located at the top of the webpage and generally set as a clickable link.
Example Code
<!-- Logo --> <span id="logo"> <a href="#"> {WebsiteName} </a> </span>
.navbar #logo img { display: block; width: 40px; }
Assembling the Logo
Here, we will use text to assemble the logo.
There are various ways to create a logo, but using text is the simplest and easiest way.
Here, we have used the <span> tag for the text.
And using the <a> tag inside, we have set a link to navigate to the main page when the logo is clicked.
To set the link, you just need to put a value in the href attribute. We used # to signify the current page.
So, clicking the logo will reload the current page.
If you want to navigate to a different page, you can specify the URL in the href attribute.
For example, to navigate to Google, you can set href="https://www.google.com".
Lessons in this chapter Β· Creating Navigation
- 1. What is a Container?
- 2. What is Navigation?
- 3. Styling the Navigation Bar
- 4. Styling Navigation div
- 5. Create a Logo
- 6. Difference Between span and p Tags
- 7. Creating a Menu
- 8. Configuring Menu Items
- 9. Styling the Menu
- 10. Creating a Button
- 11. Styling Buttons
- 12. Common Button Style
- 13. primary, secondary button styles
- 14. How to Style Buttons and Add Icons in Menus
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help