HTML

Cards (20)

  • <html> = to state that we are using html code (first tag)
  • <head> to attach code to the head of the page (allows title in address bar in web browser) </head>
  • <title> to include a title on the web browser tab </title> #do not confuse with <h1>!
  • <body> the body displays all the content on the page that you can view in the browser.  Majority of tags will be entered within the body tag </body>
  • <h1> heading 1, large bold font for headings. <h2>, <h3> are also available </h1>
  • <p> a paragraph of text, once complete it also leaves a blank line under the paragraph </p>
  • <u> underlines text </u>
  • <i> italic applied to text </i>
  • <b> bold text </b>
  • <center> centre text, note American spelling! </center>
  • <big> similar to <h1>, large text for emphasis </big>
  • <small> to make text small </small>
  • <hr> to create a horizontal rule (line) ___ </hr>
  • <ul> to define an unordered list (bullet points) </ul>
  • <li> to define a list item – each bulleted item </li>
  • <br> inserts a break which is a blank line, close tag is not required
  • <img src =“image.jpg“> inserts an image (image source).  Image must be saved in the same folder as the HTML code, image extension must be included (e.g. .jpg).  Close tag is not required
  • <a href = “http://www.google.co.uk”> adds a hyperlink to text or an image that is included between the open and close tags. Speech marks and http:// must be included. </a>
  • <a href = “mailto:evans@bish.com”> adds a hyperlink to text or an image that links to an email address
  • <blockquote> to indent text, used to highlight quotes </blockquote>