XHTML で記述している Web サイトで、未だに CSS を外部に置かず、インライン (style 属性) や埋め込み (head 内の style 要素) で記述しているものが多いような気がします。ドコモの i モード用 XHTML でも CSS が使えるのですが、その方法がインラインだけです。それじゃあ CSS を使うメリットが何ひとつないと思うんですよ。CSS の C (継承) が活かされないわけです。CSS をインラインで使うなら、HTML の物理要素を使ったほうがいいような気がしますよ。

まあ、インライン方式は好きじゃないのです。で、style 要素による埋め込み方式ですが、こちらは HTML の要素に直接指定しない分、きれいなやり方です。同じ要素で同じスタイルを指定するなら、こちらのほうが断然有利なのです。でも、サイト内でスタイルを統一するのが難しいんですね。何せ、1 ページごとに CSS を記述しなければならないのですから。そのため、一般には HTML ファイルに CSS を書かず、外部に置いてリンクする方式が好まれます。慣れたらこの方式が一番楽ですよ。

というわけで、これから XHTML なんかで Web ページを作りたい人は外部方式を使いなさい、と言ってみますよ。

2007年04月02日 月曜日 21時30分

コメント

air jordan

Thank you so much for providing individuals with remarkably spectacular chance to check tips from this blog. It is often very pleasing and stuffed with a good time for me personally and my office fellow workers to visit your blog at a minimum thrice per week to see the new guides you have got. Not to mention, we're certainly impressed with all the dazzling hints served by you. Selected 2 points in this article are surely the most impressive we've had.

2017年07月11日 火曜日 11時11分

yeezy

I'm commenting to let you know of the nice experience my princess experienced checking your site. She came to understand a wide variety of things, which included what it's like to have a very effective giving spirit to make men and women smoothly grasp a number of complex subject matter. You undoubtedly surpassed our expected results. Thank you for distributing these informative, dependable, explanatory and as well as unique tips on your topic to Gloria.[url=http://bit.ly/2sT510O]yeezy[/url]

2017年07月19日 水曜日 13時20分

adidas stan smith uk

I wanted to compose you a very little remark just to thank you so much over again with the fantastic suggestions you've shown on this page. It was quite seriously generous of you to deliver unhampered just what most of us would've made available as an e-book to help make some cash for themselves, principally since you might well have done it in case you decided. Those good ideas in addition acted like a easy way to know that other individuals have the identical fervor much like mine to learn whole lot more when considering this issue. I'm sure there are some more pleasurable sessions in the future for individuals that read your site. adidas stan smith uk

2017年07月20日 木曜日 17時47分

adidas ultra boost

I would like to express some appreciation to this writer just for rescuing me from this type of predicament. Right after looking throughout the world-wide-web and seeing advice which are not powerful, I thought my entire life was well over. Living without the presence of approaches to the difficulties you've resolved all through your write-up is a crucial case, and the kind which may have in a negative way damaged my entire career if I hadn't encountered the website. Your personal training and kindness in handling a lot of things was very helpful. I am not sure what I would have done if I hadn't discovered such a solution like this. I am able to now look ahead to my future. Thanks for your time very much for the reliable and amazing help. I won't think twice to propose your blog to anyone who wants and needs guidance about this issue. adidas ultra boost

2017年07月23日 日曜日 02時30分

yeezy boost 350

I precisely needed to say thanks once again. I am not sure the things that I would've made to happen without the entire strategies provided by you relating to this problem. It was a depressing matter in my opinion, however , viewing a expert avenue you solved it made me to cry for fulfillment. Now i'm grateful for your support and thus believe you are aware of a powerful job you have been doing teaching people today thru your site. I'm certain you have never got to know any of us. yeezy boost 350

2017年08月10日 木曜日 00時32分

Adidas NMD R1 Footlocker Exclusive Black Red White

I抦 impressed, I need to say. Really hardly ever do I encounter a blog that抯 each educative and entertaining, and let me tell you, you've hit the nail on the head. Your concept is excellent; the difficulty is something that not enough people are speaking intelligently about. I am very happy that I stumbled throughout this in my seek for one thing regarding this.

2017年08月10日 木曜日 22時37分

adidas yeezy boost

Thanks for your entire effort on this website. My daughter really likes making time for investigations and it is easy to understand why. Most of us learn all about the dynamic means you offer vital techniques through your website and as well as invigorate contribution from other ones on that area plus our favorite child is always studying a great deal. Enjoy the rest of the year. You're conducting a really good job. adidas yeezy boost

2017年08月18日 金曜日 07時39分

© 2006-2017 小野塚裕也
トップ ページ