<html> (This tells you it is an html document)
<head> (The head element is a container for all the head elements. Elements inside <head> can include scripts, instruct the browser where to find style sheets and provide meta information.)
<title> my website </title> (This is where the title of your website goes)</head> (This tells you that the head element has been closed for the head)
<body>
(This is where u add all your information to add pictures text links and everything being shown on the website)</body> (This has closed the body)
</html> (This has closed the html off and ends the html scriptAlso in the first lecture we learnt how to link pages between the website and other websites the code for this is:
<a href = “http://www.google.co.uk” title=”Google”>Google</a>
The a href starts the hyperlink out and it stands for hypertext reference then after the a href comes the equals
sign and that says the hyperlink equals the website which in this instance is google. Then after the link comes the title which is google and then after the title comes the name which you will see on the page which is google and then you end the a href by putting </a> which closes the script off.
You can link pages on your website with the code above as well but you change the website name for the name of the page.html.
No comments:
Post a Comment