semantic-markup Questions

4

Solved

Should <main> be considered something important to put inside <section>? Like having many articles with <main> 'article' in <section>? If not then how to use them together? ...
Porism asked 28/12, 2013 at 14:17

3

Solved

I was wondering what some of my fellow web developers/designers felt would be the best HTML 5 element to use for a modal dialog like a lightbox, superbox, thickbox, or whatever your favorite flavor...
Crimea asked 18/6, 2010 at 19:38

3

Solved

I'm working on a blog that implements Disqus comments and I'm making an effort to make as much use of HTML5 semantic markups as possible. Here's an example <article /> (itself within a <s...
Doxy asked 28/9, 2012 at 16:12

6

Solved

In a typical index of articles (like a blog without excerpt) like this image: those items should be a list (<ul><li>) or just divs? And also, they should be figure/figcaption? Becau...
Lidalidah asked 10/10, 2013 at 22:39

10

Solved

My site is going to have some inline code ("when using the foo() function...") and some block snippets. These tend to be XML, and have very long lines which I prefer the browser to wrap (i.e., I do...
Swingletree asked 6/1, 2011 at 3:55

3

Solved

It's very common to see the usage of the tag <nav> in a main menu navigation, but I don't know other examples where I can use it. For example, for pagination: <div class='my-pagination'&g...
Westbrook asked 10/12, 2014 at 22:16

2

Solved

We know there is the alt attribute for <img> for example. This attribute is useful and recommended for reasons of accessibility and SEO. We also know that semantic HTML tags are a thing...
Cuckoo asked 25/8, 2023 at 8:41

10

Solved

What is the proper way to provide a semantic caption for an HTML list? For example, the following list has a "title"/"caption". Fruit Apple Pear Orange How should the word "fruit" be handled,...
Imco asked 17/7, 2009 at 6:15

8

Solved

I'm setting up my WordPress sidebars for an HTML5 theme and really wanting to use before_widget and after_widget right. So my question is this: which of the two markup patterns is more appropriate...
Karbala asked 6/12, 2011 at 22:27

1

I have been writing chemical equations in HTML files using the <math> element. For example, to display MnSO4, I would type: <math> <mi>M</mi> <mi>n</mi> &...
Chloramine asked 6/5, 2023 at 14:50

3

I'm writing a new webpage for a company and I have (a sane subset of) HTML5/W3C recommendations in mind. After reading the semantic meaning of <hr />, I was wondering if this was a good plac...
Besought asked 18/8, 2010 at 15:10

3

I can't seem to discern a difference in function or meaning between using the picture element or just using the img element with the srcset attribute. I understand how they work; I just don't fully...
Nettie asked 18/9, 2018 at 19:30

5

Solved

I'd like to take advantage of the improved semantics of html5. I'm creating a search area, and the search area should have a background and contain search related things, like autocomplete an...
Basaltware asked 22/12, 2010 at 13:46

3

Solved

What to use for poem? pre blockquote code something else?
Anissaanita asked 6/2, 2013 at 16:57

3

I have a table cell with max-width set and if the text within the cell is too long, it gets truncated with ellipsis. Therefore, would using the title attribute to display the full text be an appr...
Kiser asked 20/6, 2013 at 6:36

5

Solved

As some of you would of heard the hgroup element is being removed from the HTML5 Specification. (For more info, see the W3C HTML Working Group's decision on request to drop hgroup from HTML5 on the...
Oquassa asked 4/4, 2013 at 10:10

9

Solved

Note: I know <b> is presentational and <span style="font-weight:bold> is a better way, and <strong> and <em> are for emphasis but my question is not regarding this. Shoul...
Phlebotomize asked 11/2, 2010 at 8:15

5

Solved

I've been using Twitter Bootstrap to build a site, and a lot of its functionality depends on wrapping things in <a>, even if they're just going to execute Javascript. I've had problems ...
Khoisan asked 9/5, 2012 at 5:15

2

Solved

The keywords property from Schema.org, as it being in plural form suggests, seems to imply its value should be a line of comma-separated text. Like the following example: <p itemprop="keywords"...
Vitrify asked 26/4, 2013 at 5:23

6

Solved

I have read that an <h1> tag is inappropriate for a logo. But if your logo is plain text, what should you use? I feel like <p> and <span> are also unsuitable. Here's a sample: &l...
Monoacid asked 12/2, 2016 at 20:15

4

I made some research and didn’t find an appropriate answer. I’m wondering if it’s better to keep using li elements for a products listing or maybe switch to the article element? Every product list...
Defoe asked 15/6, 2015 at 11:52

6

Solved

According to standards, is it necessary to have <tbody> in every table?
Tungstite asked 20/6, 2010 at 3:14

3

Solved

I've been looking into HTML semantics lately and I was wondering what the real purpose of <main> is. I've created two scenarios shown below: Scenario one <main role="main"> <head...
Alloy asked 19/2, 2016 at 11:53

4

Solved

I'm a little confused with roles. If I have in my page a navigation that is enclosed in a nav element and specify a role="navigation". <nav role="navigation"> ... </nav> Isn't it al...
Jota asked 16/2, 2013 at 13:53

3

Solved

I would like to create a standard way to provide an image with an alt tag for accessibility and SEO, a descriptive caption, and a separate element for a photographer credit. It appears that only on...
Lionfish asked 12/9, 2019 at 2:59

© 2022 - 2025 — McMap. All rights reserved.