forked from techbow/LAWeb4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Block.html
18 lines (17 loc) · 1003 Bytes
/
Block.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<body>
<div style="background-color:black; color:white; padding:20px;">
<h2>London</h2>
<p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
<p>Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.</p>
</div>
<!-- Block level elements normally start (and end) with a new line, when displayed in a browser.
Examples: <h1>, <p>, <ul>, <table>
Inline elements are normally displayed without line breaks.
Examples: <b>, <td>, <a>, <img> -->
<!--div 和 span的区别-->
<h1>My <span style="color:red">Important</span> Heading</h1>
<!-- The HTML <div> element is a block level element that can be used as a container for other HTML elements.The HTML <span> element is an inline element that can be used as a container for text. -->
</body>
</html>