Does Apache Solr assign a weight to HTML tags?
If you are using the Apachesolr module, then yes. The module has some sensible weighting defaults for the tags, but they can be further customized at admin/settings/apachesolr/query-fields.