Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Djibril Ndiaye
185 Pointsdifferences between markup and semantic markup
Hello everyone! I wanted to know what's the meaning of a markup in html and the differences between semantic markup and markup only. Thank you =D.
1 Answer
Eric Butler
33,512 PointsHere's what that means:
"HTML markup" just refers to the tags you use around different pieces of content. For example, <p> is the HTML markup you'd put around a paragraph of text. <b> or <strong> are HTML tags (markup) that you'd put around text you wanted to display in a bold font.
HTML markup is semantic if the name of the HTML tag kind of tells you what the content is inside it. For example, the <article> tag surrounds a series of paragraphs that make up a news story. The <nav> tag surrounds a list of navigation menu links.
Other HTML markup is not semantic, because the name of the HTML tag doesn't tell you much about what the content is inside it. For example, <div> is not a semantic tag because it doesn't indicate what's inside it.
That's it, nothing special. Hope that helps you.
Djibril Ndiaye
185 PointsDjibril Ndiaye
185 PointsThanks a lot Mister Butler. I really appreciated your help.