• Home
  • About
    • Miles' Blog photo

      Miles' Blog

      Miles 用來記錄學習心得及筆記的地方。

    • Learn More
    • Email
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

HTML - HTML Document Standards

06 Mar 2018

Reading time ~1 minute

Reference : Codecademy - Learn HTML - HTML Document Standards

  • The <!DOCTYPE html> declaration should always be the first line of code in your HTML files. This lets the browser know what version of HTML to expect.
  • The <html> element will contain all of your HTML code.
  • Information about the web page, like the title, belongs within the <head> of the page.
  • You can add a title to your web page by using the <title> element, inside of the head.
  • A webpage’s title appears in a browser’s tab.
  • Anchor tags (<a>) are used to link to internal pages, external pages or content on the same page.
  • You can create sections on a webpage and jump to them using <a> tags and adding ids to the elements you wish to jump to.


I.T.HTML Share Tweet +1