Head element in HTML
In HTML, element is the set of metadata (metadata) placed in the tag
and card
.
HTML metadata is data about HTML documents and is not displayed.
Metadata often defines text titles, character sets, styles, paths, scripts, and other information. Below are the metadata description tags ,
Element in HTML
Element used to link to external Style Sheets.
Element in HTML
Element define the character set used, page description, keywords, author and other metadata information. Metadata is used by the browser to display content, search engines used to display keywords and other web services.
Definition of character set
Site description
Keywords for search sets
Author of the page
Reload the document file after 30 seconds
Set viewport
HTML5 introduced a way for web designers to control viewport via tags .
Viewport is the area that users see on the site. This area is small and small depending on the device, the phone will be smaller on the computer.
You should include the viewport element go to all of its websites.
Viewport element Instructions for the browser how to control the size of the page.
width = device-width sets the width for the page according to the width of the screen (depending on the device)
initial-scale = 1.0 sets the initial zoom level when the page is first loaded in the browser
This is an example of a page that is used (on the right) and does not use the viewport (left) on the tag .
Head element in HTML Picture 1
Viewport helps set the page width
Element
Element in HTML
Element specify the basic URL and the basic destination for all relative URLs on the page.
Can quit, and no?
According to HTML5 standards, tags can be removed ,
and but the code is still valid.
Tiêu đề trang
Title
Paragraph.
However, do not remove the card and
because it may cause the DOM or XML software to crash or get errors on older browsers (like IE9). Removing the card
then quite often.
Previous article: File path in HTML
The following article: Layout in HTML