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
• 10,120 points
13 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 by Edureka
• 9,540 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
• 9,540 points
13 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
• 9,540 points
27 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 in CSS by Edureka
• 9,540 points
45 views
0 votes
0 answers

HTML colspan in CSS

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

Jun 30 in CSS by Edureka
• 10,120 points
20 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,740 points
99 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
29 views
0 votes
1 answer

C# class without main method

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

answered Jul 7 in C# by krishna
• 2,540 points
18 views
0 votes
0 answers

main tag in html / CSS

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

Jul 8 in HTML by Tejashwini
• 1,760 points
13 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
• 9,540 points
48 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
• 9,540 points
37 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