LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 10:00 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

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, 10:18 AM   #2
dugan
Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 5,002

Rep: Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558
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, 10:29 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

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

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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, 11:25 AM   #5
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 659

Rep: Reputation: 160Reputation: 160
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, 12:04 PM   #6
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

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, 12:22 PM   #7
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,228

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:54 PM
Nginx + Apache. Always get /var/www/html/index.html angryrabbit Linux - Server 1 11-27-2011 05:56 PM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 09:43 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-31-2007 12:59 AM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 06:06 AM


All times are GMT -5. The time now is 07:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration