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 in CSS by Edureka
• 7,660 points
6 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 5 days ago by Edureka
• 8,460 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 in CSS by Edureka
• 8,460 points
9 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 in CSS by Edureka
• 8,460 points
13 views
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

small-caps font in css handles numbers as capital letters

Because numbers are not letters, they do ...READ MORE

answered May 28 in CSS by Edureka
• 8,460 points
18 views
0 votes
1 answer

How to build a special polygon (a kite shape) with HTML & CSS only?

I made two divs, one for Arc ...READ MORE

answered May 28 in CSS by Edureka
• 8,460 points
23 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 in Java by Soham
• 8,730 points
59 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 in Java by Kichu
• 19,040 points
17 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 in CSS by Edureka
• 8,460 points
27 views
0 votes
1 answer

nbsp not working in CSS content tag

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

answered May 28 in CSS by Edureka
• 8,460 points
19 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP