₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,273 members, 8,421,094 topics. Date: Friday, 05 June 2026 at 06:47 PM

Toggle theme

DFaveweb's Posts

Nairaland ForumDFaveweb's ProfileDFaveweb's Posts

1 2 (of 2 pages)

WebmastersRe: Learn The Basics Of HTML On Nairaland by DFaveweb(op): 11:50pm On Aug 27, 2019
HTML Line Breaks
The HTML <br> element defines a line break.

Use <br> if you want a line break (a new line) without starting a new paragraph:

Example
<p>This is<br>a paragraph<br>with line breaks.</p>
PoliticsRe: #freesowore: 53 Rights Organizations To Hold Rally Demanding Sowore's Release by DFaveweb(m): 3:18pm On Aug 27, 2019
Ok
WebmastersRe: Learn The Basics Of HTML On Nairaland by DFaveweb(op): 11:13am On Aug 27, 2019
HTML Horizontal Rules
The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.

The <hr> element is used to separate content (or define a change) in an HTML page:

Example
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>
<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr>
WebmastersRe: Learn The Basics Of HTML On Nairaland by DFaveweb(op): 8:40am On Aug 27, 2019
The title Attribute
Here, a title attribute is added to the <p> element. The value of the title attribute will be displayed as a tooltip when you mouse over the paragraph:

Example
<p title="I'm a tooltip">
This is a paragraph.
</p>
WebmastersRe: Learn The Basics Of HTML On Nairaland by DFaveweb(op): 8:27pm On Aug 26, 2019
The lang Attribute
The language of the document can be declared in the <html> tag.

The language is declared with the lang attribute.

Declaring a language is important for accessibility applications (screen readers) and search engines:

<!DOCTYPE html>
<html lang="en-US">
<body>

...

</body>
</html>
WebmastersRe: Learn The Basics Of HTML On Nairaland by DFaveweb(op): 6:40pm On Aug 26, 2019
HTML Lists
HTML lists are defined with the <ul> (unordered/bullet list) or the <ol> (ordered/numbered list) tag, followed by <li> tags (list items):

Example
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>

<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
TV/MoviesRe: BBNaija: Khafi And I Never Had Sex - Gedoni by DFaveweb(m): 6:15pm On Aug 26, 2019
Lol, After you Don chop am finish grin grin
WebmastersRe: Learn The Basics Of HTML On Nairaland by DFaveweb(op): 11:43am On Aug 26, 2019
HTML Buttons
HTML buttons are defined with the <button> tag:

Example
<button>Click me</button>

1 2 (of 2 pages)