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 .
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
You should read it
May be interested
- Computer code element in HTMLelements used to display computer code data in the browser
- Introduction to HTMLa few basic things to know about html before starting to learn this language.
- Input element attributes in HTMLthe article below introduces the properties of input elements when creating forms in html.
- Box Model (Box Model) in CSSelements in html can be considered boxes. in css, the term 'box model' is used to refer to design and layout.
- ID selector in CSSin css, id is used to style the element with the specified id.
- 5 steps to learn a dynamic HTML web component profilehtml is an important part of websites we still use every day. however, not everyone can understand how a website is structured.
- Pseudo-Element in CSSpseudo-element in css is used to add special formats to a selector
- How to create custom tags with HTML and CSScreating tags with html is not difficult. however, you can learn how to craft a more attractive custom card element to incorporate it into your design.
- Semantic Element in HTML5in html, each semantic element describes the structural significance of that element to browsers and developers / developers.
- JavaScript location in HTML Filethere is flexibility in providing javascript code anywhere in an html document. however, the most preferred ways to include javascript in an html file.