Тёмный

How to make responsive navigation bar using html css || Code with Neha 

Code With Neha
Подписаться 872
Просмотров 2,1 тыс.
50% 1

So today's topic is how to make responsive navigation bar using html and css
So starting with the structure of Navigation bar
Which is mainly divided into 4 parts header, Navigation bar or menu ,content and Footer
The header element represents a container for introductory content or a set of navigational links.
A header element typically contains:
• one or more heading elements (h1 h6)
• logo or icon
• authorship information
The nav tag defines a set of navigation links.
Notice that NOT all links of a document should be inside a nav element. The nav element is intended only for major blocks of navigation links.
The content defines the overview of the website which is usually represented by h1 and p tags
The footer tag defines a footer for a document or section.
A footer element typically contains:
• authorship information
• copyright information
• contact information
• sitemap
• back to top links
• related documents
The div tag defines a division or a section in an HTML document.
The div tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript.
The div tag is easily styled by using the class or id attribute.
Any sort of content can be put inside the div tag here I am using 1st div tag as header and 2nd div tag as nav
Within nav tag there is the list of navigation links options which is represented by li tag Within ul tag (unordered list)
Now for styling the website
Using style tag just before closed head tag
Starting with header tag
Keeping the width of header as 100%
Height as 100 px border as 2px solid white color
You can chose background color of your choice just check the html color code from the website
Repeating the same step for nav bar
Now coming to the styling of the list
Keeping the list style type as none as it removes the bullets. A navigation bar does not need list markers
The display property specifies the display behavior (the type of rendering box) of an element.
Here using the display as inline block
It Displays an element as an inline-level block container. The element itself is formatted as an inline element, but you can apply height and width values
Now last but not the list hover
The :hover selector is used to select elements when you mouse over them.
The :hover selector can be used on all elements, not only on links.
Now to add a background image to the website
Styling the body
Setting background image , background size and background position
So the home page of the website is ready
Now to create the linking webpages you just need to copy paste the home page code and the main content of the webpage can be written within body tag just beneath div closing tag
And Don't forget to insert the link of the webpages in the div part to make the page responsive
You can create as much linking webpages you can
This website us just a prototype you can design it as per your wish
So that's it for today
Hope you all found my content useful
If it's so then don't forget to subscribe my channel Code with Neha and press the Bell Icon for Regular Updates
See you in the next video till then Stay Safe Stay Happy
#responsivenavigationmenuusinghtmlandcss
#howtomakeresponsivenavigationbarinhtmlandcss
#responsivenavigationbarwithhtmlandcss
#navigationbarinhtmlandcssresponsive
#howtocreateresponsivenavigationbarusinghtmlandcss
#responsivenavigationbarhtmlcss
#responsivenavigationbartutorial
#navbarcss
#responsivenavgationbarcss
#menubar
#navigationbar
#howtomakeresponsivemenubarusingcss
#navigationbarinhtml
#responsivenavigationbarwithhtmlandcss
#Responsivenavbarhtmlcss
#responsivenavbarinhtmlcss

Опубликовано:

 

11 янв 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@PVPaavamVelappan
@PVPaavamVelappan 4 месяца назад
Nice video, I can see a good teacher in you....
@CodeWithNeha766
@CodeWithNeha766 4 месяца назад
Thank you so much for your appreciation 😊
@user-rp8ol9rt2w
@user-rp8ol9rt2w 4 месяца назад
Nice
@CodeWithNeha766
@CodeWithNeha766 4 месяца назад
Thank you 😊
@AwanSolarPower
@AwanSolarPower 4 месяца назад
nice
@CodeWithNeha766
@CodeWithNeha766 4 месяца назад
Thank you 😊
@anshmishra-yw6ry
@anshmishra-yw6ry 4 месяца назад
Good 🎉keep hardwork doing
@CodeWithNeha766
@CodeWithNeha766 4 месяца назад
Thank you so much for your appreciation 😊
@trsikdar
@trsikdar 4 месяца назад
Very Nice, good concept
@CodeWithNeha766
@CodeWithNeha766 4 месяца назад
Thank you 😊
@kuki0607
@kuki0607 4 месяца назад
good video, but why u don't use a code editor like vscode?
@CodeWithNeha766
@CodeWithNeha766 4 месяца назад
Actually I am just focusing on making the code look much easier But I like your suggestion as well Will definitely try next time ☺ Thank you for appreciation 😊
@1223UI8J
@1223UI8J 4 месяца назад
Can You Make Full Tutorials On C++
@CodeWithNeha766
@CodeWithNeha766 4 месяца назад
I am actually more focused on web development topics But will surely try to bring more contents on different topics
@ashutoshyadav8482
@ashutoshyadav8482 3 месяца назад
neha ji..u can use any modern editior like VS code....notpad jinda q h.. avi tak
@CodeWithNeha766
@CodeWithNeha766 3 месяца назад
I agree with you ashutosh jii And I had already rectified my mistake (actually not a mistake notepad is for the beginners) From now onwards you can watch me using text editor for coding videos
@user-cs7oz5ld9m
@user-cs7oz5ld9m 3 месяца назад
​@@CodeWithNeha7661st tym kisi youtuber ne response kiya h.🤔🤔 ab m coding sikh jaaunga🫠
Далее
САМЫЕ ТУПЫЕ МАЖОРЫ С ПАТРИКОВ
33:19
Dancing makes everything better 🕺🏼
00:16
Просмотров 2,3 млн
САМЫЕ ТУПЫЕ МАЖОРЫ С ПАТРИКОВ
33:19