Semantic Element in HTML5

What is the semantic element?

In linguistics, semantics is the study of the meaning of words and phrases in language.

Each semantic element has its own meaning. So in HTML, every Semantic Element describes the structural significance of that element to browsers and developers / developers.

Examples of non-semantic elements (elements without semantics):

and - There is no clear description of its content.

Examples of semantic elements ( semantic elements): ,, and Semantic Element in HTML5 Picture 1 - Provide clear descriptions of the content within the element.

Browser support

Semantic Element in HTML5 Picture 2

Semantic Element in HTML5 Picture 3 Semantic Element in HTML5 Picture 4 Semantic Element in HTML5 Picture 5 Semantic Element in HTML5 Picture 6 Google Chrome Mozilla Firefox Internet Explorer Opera Safari

Semantic elements in HTML5 are supported in all modern browsers.

In addition, you can "teach" older browsers how to handle new HTML5 elements.

New Semantic elements in HTML5

Many websites are still designing based on HTML code like

to create navigation, header (header) and footer (footer) interfaces.

Below, HTML5 provides new semantic elements to identify different parts of a web page:

Semantic Element in HTML5 Picture 7

Element in HTML5

Elements that represent a common part are in documents or applications.

More specifically, a section is a group of content with the same topic.

For example , the home page of a website can be divided into sections such as referrals, content, contact information, suggestions .

 

Introducing Webside Quantrimang

 

Quantrimang is webside specializing in phone, computer, network tips, programming, fixing computer errors, using software, specialized software, scientific technology .





The main topic in Quantrimang

 

Quantrimang has topics close to life that are updated regularly and continuously, such as: Technology Village, Technology, Science, Life, Video, Application, IPhone / IPad, Android, Programming.

Results:

Semantic Element in HTML5 Picture 8

Element in HTML5

The element is used for independent content and contains its own content.

The content inside is separate and can be independent of other content of the site.

For example, some places you can use :

  1. Posts on a Forum.
  2. Posts on a Blog.
  3. Articles in a newspaper.

About TipsMake.com


Starting from a website that provides knowledge about networking, servers, network devices, computer tricks. Currently, TipsMake.com has become a social science and technology network, expanding its content to meet the needs of its members in many more technological areas such as phones, smart devices, and electronics. computer security, .


Results:

Semantic Element in HTML5 Picture 9

The inner element or vice versa?

In HTML5, define a block of complete content of many related elements linked together.

The element is used to create a group of interrelated elements.

So do we need to rely on the function of the factors to decide which element must be within the factor? The answer is: No!

Today on the Internet, you can find many websites where the element contains elements or elements that contain elements . Besides, you also see many web use and storage . Therefore, it is not necessary to determine which element is in which element.

Example of a web page: In the sports area, there are many sports articles, in each sports article there is a technical area.

Element

in HTML5

Element

Define the beginning of a document page or the beginning of a paragraph.

Element

should be used as an introductory content container.

You can use one or more

in a document.

For example, we use a card

inside an article:



What is TipsMake.com's goal?


Lead duties:



We expect our members to always grasp the latest information, knowledge, technology trends, and troubleshoot technology issues encountered by members when using computers, phones, other common electronic devices.


Results:

Semantic Element in HTML5 Picture 10

Element in HTML5

The element determines the end of a document page or the end of a paragraph.

The element usually contains author information of documents, copyright information, links to terms of use, contact information .

You can use one or more in a document.

For example:


Contact us: TipsMake.com


Address: No. 56, Pho Duy Tan, Dich Vong Hau, Cau Giay


Service time: From 8:00 - 17:30 hours (Monday to Friday); From 8:00 - 12:00 (Saturday)


Hotline: 024 2242 6188


Email:


info@meta.vn.

Results:

Semantic Element in HTML5 Picture 11

Element

Element

Identify an area containing navigation links.

However, not all navigation links in a document need to be placed in

For example:


Làng Công nghệ |
Khoa học |
Cuộc sống |
Ứng dụng

Results:

Semantic Element in HTML5 Picture 12

Element in HTML5

The content definition element is located next to the content of the page.

Internal content relates to the main content.

For example:

Quantrimang meets the needs of members in many different fields such as Technology, Life, Applications .




Technology

 

Latest trends and discoveries in science and technology will be updated here by TipsMake.com.

 

Life

 

Life skills, job skills, leadership skills, life tips, things you may not know, good sayings about life, famous quotes of Jack Ma, Bill Gate, Steve Jobs,. .

Results:

Semantic Element in HTML5 Picture 13

Element

and
in HTML5

The purpose of the element is to explain more clearly the added picture, similar to the captions / notes below the pictures in the articles and story books.

In HTML5, images and notes inside can be put together inside the element

.

For example:

About TipsMake.com

 

Starting from a website that provides knowledge about networking, servers, network devices, computer tricks. Currently, TipsMake.com has become a social science and technology network, expanding its content to meet the needs of its members in many more technological areas such as phones, smart devices, and electronics. computer security, .

 

Semantic Element in HTML5 Picture 14
Home Quantrimang at TipsMake.com
 

Results:

Semantic Element in HTML5 Picture 15

Why use Semantic elements in HTML5?

In HTML4, developers often have to create their own properties to design sections such as header, top, bottom, footer, menu, navigation, main, container, content, article, sidebar, topnav .

This makes the search appliance unable to determine what content is contained within the site correctly.

In HTML5, elements like:

Make everything a lot easier.

Semantic factor in HTML5

Here is a list of new semantic elements in HTML5:

Meaning
Define an article / article Define the content located next to the content of the page
Identify details that users can view or hide Tags for
Mark image content in a document Specify the end of a document page or a paragraph
X determines the first part of a document page or a paragraph. Specify the main content of a document Define the highlight / highlight text areaDefine an area containing navigation links Specify a section in the document Show the title for the element
Determine the date / time

Previous article: New elements in HTML5

Next lesson: How to convert from HTML4 to HTML5

4 ★ | 1 Vote

May be interested

  • 6 websites show the power of HTML56 websites show the power of HTML5
    html5, the new step of html, promises to bring the web experience to a new stage by allowing the browser to make many interesting things with data and images.
  • Computer code element in HTMLComputer code element in HTML
    elements used to display computer code data in the browser
  • HTML editor onlineHTML editor online
    online html editor supports html5, when you type the opening tag automatically generates a closed tag, can detect errors related to the syntax when you are editing with the square icon with the x mark right on the error code line.
  • Block and inline elements in HTMLBlock and inline elements in HTML
    each element in html has a default display value, depending on which element it is.
  • Inspect Element: How to temporarily edit any website?Inspect Element: How to temporarily edit any website?
    right-click on any web page, click inspect, and you'll see everything inside of that site, including: designed source code, images and css, fonts and icons that the page uses. and animated javascript code, ...
  • Scientists discovered super heavy element 116, called livermoriumScientists discovered super heavy element 116, called livermorium
    scientists at the us's lawrence berkeley national laboratory have found a new way to create element 116, called livermorium.
  • Box Model (Box Model) in CSSBox Model (Box Model) in CSS
    elements in html can be considered boxes. in css, the term 'box model' is used to refer to design and layout.
  • Standard format and code coding convention in HTML5Standard format and code coding convention in HTML5
    html5 has a free way to write, so to become a smart programmer, you need to create your own habit of writing the code properly so that others can easily understand and use your html code. find out with quantrimang.
  • Padding in CSSPadding in CSS
    the css padding feature is used to create space around the content of the element and within the borders in css.
  • HTML5 and CSS3HTML5 and CSS3
    basically, html pages are like skeletons - the basic framework - of a web page - while css files will specify how the elements of a page should be displayed.