Forum Moderators: open
Google did not ignore the text. It applied a value to the text as instructed by you.
HTML is a structural markup language, and the <h1> and </h2> tags indicate a structural element: a top-level headline. That value shouldn't change because of a presentational element such as <font> and </font> tags.
HTML is a structural markup language, and the <h1> and </h2> tags indicate a structural element: a top-level headline. That value shouldn't change because of a presentational element such as <font> and </font> tags.
europeforvisitors,
Nice theory but it does not work in practice. Create a new HTML document with the following lines and then view the document in your web browser.
<html>
<head>
<title>Font Size Test</title>
</head>
<body text="#000000" bgcolor="#ffffff">
<h1><font size="-3">This Is Not Important Text</font></h1>
<h2><font size="+3">This Is Important Text</font></h2>
<blockquote>Google gets it right.</blockquote>
</body>
</html>
If you define a style for h1, you do not neet to specify a class for it in the tag. It will automatically pick that up. So you only need <h1>, unless you are planning to use several different styles for it throughout your page; in which case you would use <h1 class="foo">text</h1>
Hope this helps! :)