Wednesday 30 September 2015

LO2 - Learning html


Heading Elements


Headings ah1 to h6.
re described by heading elements. There are six levels of heading elements:
The h1 element is used to describe the
main heading of the page.









            Links

The defining feata element is used to create links.
ure of the Web is the presence of links. Clicking on links leads to other web pages. The
The a element is similar to the h1 or p elements, but it has two key differences:
  • First, it has an href attribute which equals the website you want to link to.
  • Second, you get to choose the link text that users see on the page.





      Images


    <img>

    In addition to headings and paragraphs, a web page can have images. The img element is used to add images to a page.
    The img element has an attribute inside the opening <img> tag named src. The src attribute has the address of the image.








      Lists

    <ul> and <li>

    In addition to paragraphs and images, content can be presented as lists.
    In HTML, a bulleted list is described using a ul element. Each item in the list is placed inside an li element.







      Html & Body


    <html> and <body>

    Here's an example of a real web page:
    • Everything inside a web page is nested inside the html element
    • The body element contains the actual content of the web page - everything nested inside <body> and </body> shows up in the web browser
    The doctype at the start of the HTML file tells the browser which version of HTML you are using. The doctype is not an HTML element, so it doesn't have a closing tag. The doctype ensures that your web page displays consistently when its visited from different browsers.

2 comments: