/    Sign up×
Community /Pin to ProfileBookmark

Are additional and non-standard tags inappropriate for optimization?

Hello
Are additional and non-standard tags inappropriate for optimization?(for search engine)

for example:

[CODE]
<html>
<head>
<style>
#A{
color:red;
}
</style>
</head>
<body>
<LLLL id=”A”> www.webdeveloper.com </LLLL>
</body>
</html>
[/CODE]

thank you.

to post a comment
HTML

21 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyNov 02.2014 — Generally, non-standard tags would be ignored by the search engines. They would be treated as typographical errors. However, your example poses an edge case where your CSS might affect the appearance of the page, and that can have an impact on your rankings - especially if the CSS/HTML renders the content invisible to users.

Hidden text is a violation of the guidelines of all of the major search engines, and you don't want to be caught using a technique that might be seen as being deliberately deceptive. Penalties for intentional violations last a very long time, and you don't get them lifted with a simple "I'm sorry" in your Reconsideration Request.
Copy linkTweet thisAlerts:
@deathshadowNov 03.2014 — Pretty much, just DON'T -- don't go making **** up... don't go making tags up, don't go making attributes up -- we have semantic markup for a REASON, you have CONTENT for a reason, let them do their job!
Copy linkTweet thisAlerts:
@HemanthmalliNov 04.2014 — ya its inappropriate tags in Optimization of your site and attributes are also not required and the content can be changed according o your wish.
Copy linkTweet thisAlerts:
@jedaisoulNov 04.2014 — There is no legitimate reason to invent non-standard TAGs, so don't do it. Concentrate on learning how to use the standard tags properly.
Copy linkTweet thisAlerts:
@CharlesNov 04.2014 — If you are feeling the need to expand your semantic possibilities there is a way to do that already written into the language:&lt;html&gt;
&lt;head&gt;
&lt;style type="text/css"&gt;
#A{
color:red;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;span class="LLLL" id="A"&gt; www.webdeveloper.com &lt;/span&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@jedaisoulNov 04.2014 — @ Charles

I do not understand what you are seeking to achieve by using an undefined class???
Copy linkTweet thisAlerts:
@NogDogNov 04.2014 — @ Charles

I do not understand what you are seeking to achieve by using an undefined class???[/QUOTE]


I think the point here is that the class attribute need not only exist for CSS/display purposes, it can also (and implicitly [I]does[/I]) denote semantic meaning. For instance, I can use DOM functions to identify all span tags that include class "LLLL" (or just all tags of any type with class "LLLL"), and do something non-display-oriented with the contents/attributes of those elements.
Copy linkTweet thisAlerts:
@jedaisoulNov 04.2014 — Thanks NogDog, I get it now. However, I'm not convinced of the need for such script-based modification of HTML code. But then I intensely dislike JavaScript anyway, so I suppose I wouldn't be... ?
Copy linkTweet thisAlerts:
@NogDogNov 04.2014 — Well, that's just an example of what you can do with semantic mark-up, the point being that the mark-up can have meaning, and is not just an identifier for controlling how the data is displayed, though admittedly that's what 99%* of web developers probably use it for. E.g., search engines may give different weight to text within h1 tags -- as long as there is only one (or a very small relative number of them) in a page. The class attribute can be used to add additional meaning to its tag -- what you choose to [I][B]do[/B][/I] with that meaning is up to you. ?

______________
  • * remember that 67.5% of all statistics are made up
  • Copy linkTweet thisAlerts:
    @CharlesNov 04.2014 — There are lots of different reasons why someone might want to add a little extra semantic information. Perhaps for some server side scripting. Perhaps to open up the document to some some sort of scripting on the client side. HTML and XHTML aren't just for making pretty pamphlets. Imagine a document with a lot of weather or rain gauge information. Trust me, there is a user out there who will want to parse your HTML and extract that data. And that user will want to kiss you if you have added the extra semantic info with the class attribute. See also http://microformats.org/ .
    Copy linkTweet thisAlerts:
    @deathshadowNov 04.2014 — If you are feeling the need to expand your semantic possibilities there is a way to do that already written into the language:[/QUOTE]
    Classes have jack **** to do with semantics!!! [i](The string of expletives that spewed forth from my mouth when I saw your post would make Gunny Ermee blush)[/i] While it's good practice to use meaningful names (unless the uselessly vague garbage of "LLLL" or "A") classes [b]DO NOT IMPLY MEANING in the markup -- EVER![/b] (same for ID's)

    Nor do spans... since SPAN and DIV are semantically neutral, simply meaning "this element or group of elements MAY be receiving an unspecified style"; hence why when writing your initial markup you shouldn't even have DIV or SPAN in them.

    ... and don't even get me STARTED about that microformats bull; since they have nothing to do with logical document structure and/or professional writing, and seems more to be to satiate the desires of the data-scraping jackasses (aka THIEVES) I thought most site owners were trying to keep out of their pages.

    There is more than enough structural semantics in HTML 4.x, we don't need all this extra crap as sooner or later you have to let your content speak for itself. [i]I have similar issues with this whole ARIA role bull...[/i]

    Jumped up George C, Dice and Leary! Has anyone else out there even BOTHERED taking the time to understand HTML tags and their meanings?!? What classes ARE, what ID's ARE?!?
    Copy linkTweet thisAlerts:
    @CharlesNov 05.2014 — The world, and especially HTML, has enough rules as it is. Don't go making up your own. Classes, and even IDs, are not required to convey meaning but they certainly may. Please see http://www.w3.org/TR/html401/struct/global.html#adef-class and note that in the HTML 4.01 recommendation all of the examples of classes convey meaning.

    What you should not do is use semantic classes in place of the built in elements and you can certainly use them to add further depth to the existing elements.

    And since this was originally a question about SEOs, I should point out that Google reads microformats. https://support.google.com/webmasters/answer/146897?hl=en
    Copy linkTweet thisAlerts:
    @giraffedevNov 05.2014 — There is no legitimate reason to invent non-standard TAGs, so don't do it. Concentrate on learning how to use the standard tags properly.[/QUOTE]

    Well,isn't that what XHTML is trying?To let the developer create his own tags?Well,that's what I heard.
    Copy linkTweet thisAlerts:
    @CharlesNov 05.2014 — Well,isn't that what XHTML is trying?To let the developer create his own tags?Well, that's what I heard.[/QUOTE]Well, sort of.

    Strictly speaking, in HTML you are allowed to create your own elements and browsers are supposed to just ignore any unrecognized tags. But in XHTML anything that isn't permitted by the DOCTYPE is supposed to cause browsers to throw an error.

    However, in XML you are encouraged to mix vocabularies by using namespaces. So, if you are extending XHTML then you have to amend the DOCTYPE.

    I usually just use microformats when I can but if I need a new a different attribute for something then I use XHTML 1.0, give my new attribute a namespace but serve the thing as HTML.
    Copy linkTweet thisAlerts:
    @giraffedevNov 05.2014 — Amazing Charles.Hope one day,we'll be able to throw any tag name we wish and style it with css.Till then,guess we'll stick with html5.
    Copy linkTweet thisAlerts:
    @CharlesNov 05.2014 — No, no no! That would send us back to the bad old days of the FONT tag. Defined vocabularies are essential to communication.

    It is extremely important to mark up the page properly with the established HTML vocabulary. But it is also helpful to add a little something else from time to time. That's why microformats are a wonderful and elegant solution.
    Copy linkTweet thisAlerts:
    @giraffedevNov 05.2014 — Yes Charles!I know that feeling but where does the "X" from XHTML come from?Not XML?Isn't XML the nearest nearly HTML?Having the freedom to make your own tags is pretty awesome,it's basicaly a feauture.However,if I rethink,we got most of the tags we'd ever need already,even unuseful ones such as <main>.I get your point but custom tags should be welcomed.
    Copy linkTweet thisAlerts:
    @CharlesNov 05.2014 — HTML is built out of something called SGML. SGML is nothing but a grammar with no vocabulary. When you add a vocabulary you get what is called generically "an SGML application". HTML is one of those SGML applications--sort of. SGML has a lot of features that were never implemented by browsers and so are not considered a part of HTML. XML is sort of a next-generation version of SGML. It omits a lot of bad ideas and includes some good ones. The X is for eXtensible and the idea being that you can use multiple vocabularies in one document. XHTML is an XML application. If you take XHTML and add MathML, you don't get an extension of XHTML, you get a whole new XML application known as XHTML plus MathML. Or even add SVG to the mix: http://www.w3.org/TR/XHTMLplusMathMLplusSVG/ .
    Copy linkTweet thisAlerts:
    @giraffedevNov 05.2014 — Thanks for pointing me in the right direction Charles!Gonna look more into this subject.
    Copy linkTweet thisAlerts:
    @Mr_Initial_ManNov 06.2014 — Amazing Charles.Hope one day,we'll be able to throw any tag name we wish and style it with css.Till then,guess we'll stick with html5.[/QUOTE]


    Been there, done that, got the strange looks.

    Complete with forum topic, even!

    Two, actually, but this one's closed.
    Copy linkTweet thisAlerts:
    @jedaisoulNov 06.2014 — So is this one.
    ×

    Success!

    Help @php_php spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...