0
What is the code for heading
4 Respuestas
+ 2
h1 to h6
+ 1
<h1> the biggest headertext </h1>
<h6> the smallest headertext </h6>
+ 1
There are two kind of "heading" in html: non-visual "heading" <head> tag, intented to give meta-information of the source code (must be direct child of <html> root tag), and visual "heading", intended to define header in the displayed content of the document (must be child of the main visual document content <body>, wich must itself be direct child of <html> root tag).
Among visual "heading", there are <h1> to <h6> tags, with predefined styles used to defined hierarchychal titles (from biggest to smallest), and the (new in html5) <header>, without predefined style related to "heading", but intended to semantically define "heading" sub-parts of the visual content...
- 2
From h1 to h2 in dependence of the text size