LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 11-27-2012, 09:00 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Useless HTML excessiveness


So I’ve been making HTML pages for some time now and got to this conclusion that HTML itself has a lot of really useless things. And I don’t understand intensions of creating them. Like, we have lots of meta tags, such as “keywords”, “author”, “generator”... They are never used to show information on the page, so it was easier to just write that data as comments since you have to see source code anyway to know what’s in “author” and “generator”...

But even more useless to me look semantic tags. They can’t express everything but when they do express something — you normally won’t see it. For instance, we have “var” tag for variables and that’s italics by default. What’s the point of it? If you need to make something italics, just make it so. And if you try to use every sematic tag out there correctly — noone will ever see your diligence. Or if you want it you should probably say in the beginning of a page that reader better read source code.

And still you don’t have semantic tag for everything. We have “var”, right? Where are tags for classes, functions and methods?
 
Old 11-27-2012, 09:18 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
Quote:
Originally Posted by Mr. Alex View Post
And I don’t understand intensions of creating them. Like, we have lots of meta tags, such as “keywords”, “author”, “generator”... They are never used to show information on the page...
Those are for search engines to read.
 
Old 11-27-2012, 09:29 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
SE don’t buy semantics anymore.
 
Old 11-27-2012, 10:07 AM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
For instance, we have “var” tag for variables and that’s italics by default. What’s the point of it? If you need to make something italics, just make it so.
If you have marked variables separately then you can changes the formatting of just the variables with CSS. In fact, some browsers allow you to apply custom CSS to webpages so everyone could have their own formatting scheme. Of course, since the not everyone uses semantic markup this doesn't work in practice, but you can still see the remains of the Grand Vision in the HTML spec...

Quote:
And still you don’t have semantic tag for everything. We have “var”, right? Where are tags for classes, functions and methods?
They realized (after already having defined "var") using the class attribute was a more extensible way than defining every possible semantic tag that anyone might ever want, I guess?
 
Old 11-27-2012, 10:25 AM   #5
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi OP,

var tags are part of the java script scripting language. It is just plain text. I think that it is your IDE or view source output of your browser which is just showing the word in italics.

As to meta tags, they are used to show information to the search engines.

OK
 
Old 11-27-2012, 11:04 AM   #6
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Quote:
var tags are part of the java script scripting language. It is just plain text. I think that it is your IDE or view source output of your browser which is just showing the word in italics.
It's not JS, it's HTML.

Quote:
As to meta tags, they are used to show information to the search engines.
Again - not any more. SE just don't care for them these days.
 
Old 11-27-2012, 11:22 AM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,138

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Remember that HTML is a simplification of SGML, which is used for marking up documents; Sir Tim Berners-Lee encountered that at CERN. The whole point of a mark-up language is that it marks function, not format. In marking up a MS for a book, you'd use something like <sq> of short quotations and <lq> for long ones. The editor can then decide whether <sq> will be realised as single or double quotes, and whether <lq> will be the same or an indented paragraph in small type. Tags like <cite> enable automatic creation of bibliographies. That sort of thing is still useful in HTML, because it's not confined to the web: it can also be found in databases and internal documentation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML: post online/offline in html code? Xeratul Programming 3 08-11-2012 01:54 PM
Nginx + Apache. Always get /var/www/html/index.html angryrabbit Linux - Server 1 11-27-2011 04:56 PM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 08:43 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-30-2007 11:59 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration