main tag in html CSS

0 votes
I'm having trouble understanding the tag.

The project I'm looking at contains only one closing tag at the end, which confuses me in the first place. It also includes main in CSS. I experimented with it a little to attempt to grasp what it does.

When I comment out the in html, nothing changes, which I understand if it only includes an informative character, but the part that confuses me is what the main.... in the CSS is referring to, because commenting this out will screw up the styling of the entire page.

edit: Since it appears that my problem is unclear: The problem is that main..... in CSS does (!) influence the design of the site, even without an opening html main> element, and even without ANY html main> tag (for example, if I remove the /main> tag in html).

How can a main.... in CSS have an effect on styling if there is no main> tag in the html at all?
Jun 10, 2022 in CSS by Edureka
• 12,890 points
76 views

1 answer to this question.

0 votes
The main> tag identifies a document's main content. The material contained within the main> element must be unique to the document. It should not include any content that appears in several publications, such as sidebars, navigation links, copyright information, site logos, and search forms.
answered Jun 21, 2022 by Edureka
• 11,450 points

Related Questions In CSS

0 votes
1 answer

Color names allowed in HTML/CSS

Aqua, black, blue, fuchsia, grey, green, lime, ...READ MORE

answered Jun 1, 2022 in CSS by Edureka
• 11,450 points
80 views
0 votes
1 answer

How to insert spaces/tabs in text using HTML/CSS

For spaces, use  , for (less than, ...READ MORE

answered Jun 1, 2022 in CSS by Edureka
• 11,450 points
92 views
0 votes
1 answer

I want to create a small square colour filled box in HTML & CSS. And most important - I want to write one line after the box

Try using the square html entity: <div style="color:blue">&a ...READ MORE

answered Jun 28, 2022 in CSS by Edureka
• 11,450 points
1,465 views
0 votes
0 answers

HTML colspan in CSS

I'm trying to construct a layout similar ...READ MORE

Jun 30, 2022 in CSS by Edureka
• 12,890 points
128 views
0 votes
1 answer

no 'access-control-allow-origin' header is present on the requested resource

The java <class-name> command syntax is one ...READ MORE

answered Feb 8, 2022 in Java by Soham
• 9,700 points
205 views
0 votes
0 answers

What is "String args[]"? parameter in main method Java

I am a beginner in java and ...READ MORE

May 15, 2022 in Java by Kichu
• 19,040 points
122 views
0 votes
1 answer

C# class without main method

Not every single class need the main ...READ MORE

answered Jul 7, 2022 in C# by krishna
• 2,820 points
218 views
0 votes
0 answers

main tag in html / CSS

I do find it difficult to grasp ...READ MORE

Jul 8, 2022 in HTML by Tejashwini
• 3,470 points
81 views
0 votes
1 answer

How to set Bullet colors in UL/LI html lists via CSS without using any images or span tags

I use jQuery for this: jQuery('li').wrapInner('<span class="li_content" />'); & ...READ MORE

answered May 27, 2022 in CSS by Edureka
• 11,450 points
313 views
0 votes
1 answer

nbsp not working in CSS content tag

May be this could be the solution ...READ MORE

answered May 28, 2022 in CSS by Edureka
• 11,450 points
195 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP