HTML » Headings/Paragraphs/Links » List » ??? » ??? »

<H1>-<H6>、<p> and <a>

<H1>-<H6>

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
     <H1>Heading1</H1>
     <H2>Heading2</H2>
     <H3>Heading3</H3>
     <H4>Heading4</H4>
     <H5>Heading5</H5>
     <H6>Heading6</H6>
  </body>
</html>

結果 :

Heading1

Heading2

Heading3

Heading4

Heading5
Heading6

<p>

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
     <p>aaa</p>
     <p>bbb</p>
  </body>
</html>

結果 :

aaa

bbb

<a>

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
     <p><a href="https://www.google.com.tw">google site</a></p>
     <p><a href="https://www.google.com.tw" target="_blank">google site on a new browser tag</a></p>
  </body>
</html>

結果 :

google site

google site on a new browser tag

參考資料:

1: HTML attribute reference – MDN

2: Creating hyperlinks – MDN

3: Absolute URLs vs relative URLs – MDN