How to add article in HTML5?

WBOY
Release: 2023-09-12 11:37:02
forward
1060 people have browsed it

How to add article in HTML5?

In this article, we will learn how to add articles in HTML5.

One of the new segmentation elements in HTML5 is the

tag. Articles are represented in HTML using
tags. More specifically, the content contained within the
element is different from the rest of the site's content (even though they may be related).

Let us consider the following example to understand how to add an article in HTML5

Example 1

In the following example, we use inline styles in the post element.




   
image

TutorialsPoint

Tutorials Point originated from the idea that there exists a class of readers who respond better to online content

Copy after login

When the script is executed, it will generate an output showing the image uploaded using scr and the text used within the

tags on the web page.

Example 2

Consider the following example, we are creating three separate articles with separate content.




   

MSD

Mahendra Singh Dhoni is an Indian former professional cricketer who was captain of the Indian national cricket team in limited-overs formats

YUVI

Yuvraj Singh is a former Indian international cricketer who played in all formats of the game. He is an all-rounder who batted left-handed in the middle order

SREYAS IYER

Shreyas Santosh Iyer is an Indian cricketer who plays for the national side in international cricket, Mumbai in domestic cricket

Copy after login

When you run the above script, it will generate an output containing the post tag text used in the script on the web page.

The above is the detailed content of How to add article in HTML5?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!