Text in HTML
Element
in HTML is used to define a paragraph of text.
For example
ản trị mạng.
Here l
A news site, technology tips.
Note that the browser will automatically add spaces (margins) before and after a paragraph of text.
How is HTML displayed?
You can't be sure how HTML will display, depending on whether the screen size is large or small, the browser window is open or narrow, it can give different results.
With HTML, you cannot change the display by adding spaces or adding lines in the HTML code because the browser will automatically delete them when displaying the page.
For example, the following two code snippets will display the same.
> >
Quản trị mạng
là trang thủ thuật công nghệ,
tin tức công nghệ,
khoa học.
Quản trị mạng
là trang thủ thuật công nghệ,
tin tức công nghệ,
khoa học.
Don't forget the closing card
Most browsers still display correctly even if you forget the closing tag, but don't be too subjective because sometimes missing tags can cause errors.
Line down in HTML
Element
in HTML defines downstream. Please use
If you want to start a new paragraph in the text by going down the line.
For example
mạng
administrator
làmạng
làmạng
page of tips and technology news.
là
Card
is an empty element, meaning no closing tag is required.
Note when displaying poetry
If you write poetry without breaking the line, as in the code below, they will only display as a paragraph, even if you look like a poem.
<p>
Sóng bắt đầu từ gió
Gió bắt đầu từ đâu
Em cũng không biết nữa
Khi nào ta yêu nhau.
Element
in HTML
Element
used to define text before formatting. Text inside
will display in font with a fixed width (usually Courier) and leave the spaces and line breaks intact.
> >
Sóng bắt đầu từ gió
Gió bắt đầu từ đâu
Em cũng không biết nữa
Khi nào ta yêu nhau.
This is the image displayed on the browser
Last lesson: Title in HTML
The following article: Style properties in HTML
You should read it
May be interested
- Table in HTMLwhat does it take to create a table in html? is it complicated? want to add color to the table border, how to add the background color to the text in the table? in this article tipsmake.com will answer those questions and guide you to basic operations with tables on html, in addition to adding alternate color schemes for rows in the html table. invite you to follow along.
- How to Make a Scrolling Marquee in HTMLa scrolling marquee is moving text added to a website, but html is no longer commonly used for this feature and is not recommended. the html tag for scrolling marquees has been deleted from the standard html library. to accomplish a...
- Text - Text in CSSthe article explains how to format text in css.
- 10 best free HTML editing tools for Windows 2018a good html editor must have a spell checker, line number, autocomplete, page preview and a text and image editing tool. there are many types of editing tools (text, object and wysiwyg), so it is important to find an appropriate tool.
- eQuiz - Multiple choice test on HTML knowledgein this test, we will proceed with the small html test, there will be 30 questions in total with no response time, you must choose the answer in each question. can continue to the next sentence.
- Paths in HTMLyou can find links (links) throughout the web. link allows clicking to switch to another page.
- PHP & XMLxml is a markup language that is quite similar to html. an xml document is plain text and contains tags limited by. there are two major differences between xml and html.
- Why write neat and organized HTML?you will get many benefits from writing clean and precise html code. here's why it's a good idea to write optimal html code.
- How to Build a Calculator with HTMLin addition to countless pre-built calculators, you can also do math on your desktop computer by using html code to build your own. to create a calculator from html, you need to learn some basic knowledge about this programming language, then copy the necessary code into a text editor and save it as html. at this point, you can open the html document in your favorite browser and start using your computer. just like that, you can not only do math in the browser but also learn a few basics about the art of programming!
- How to Insert Lines in HTMLthis article shows you how to create horizontal lines in html and css. you can use horizontal lines to separate paragraphs of text or other content on the website. the latest way to add horizontal lines is using css and html5, but for now you can still use an html tag called 'hr'.[1] x research source