Working on a website you need to use basic HTML structure in order to build or construct a working page. Starting your first HTML website you need to remember that it always begins with an opening HTML tag element and it ends with an ending HTML tag element. See sample below:
The html element basically tells your browser or computer that is an HTML document. The other element tags are nested within the <head></head> tag. When working on a website you need to create other section by creating and <body></body> elements.
<head></head> TAG ELEMENT
What roll does the <head></head> tag element plays inside your HTML document? The <head></head> element contains metadata—information that describes the document itself, or associates it with related resources, such as scripts and style sheets. Inside the <head></head> you will fid the following HTML elements: <meta charset=”utf-8″>, <title>YOUR PAGE TITLE GOES HERE</title>, <style></style>, <link> and <script></script>. Remember that the content inside the title may be used to provide a heading that appears in the browser’s title bar, and when the user saves the page as a favorite. It’s also a very important piece of information in terms of providing a meaningful summary of the page for the search engines, which display the titlecontent in the search results. Do not get the content inside the <title></title> tags mixed-up with the name of your file/document. See sample below using you <title>YOUR PAGE TITLE GOES HERE</title>
<title>YOUR PAGE TITLE GOES HERE</title>
The image below will show you how your <title>YOUR PAGE TITLE GOES HERE</title> will display in the browser.
Below you will find a sample on how to apply the rest of the HTML elements.
<meta charset=”utf-8″> <!–The The charset attribute can be used as a shorthand method to define an HTML document’s character set, which is always a good thing to do.–>
<!–UTF-8 is a character encoding capable of encoding all possible characters, or code points, defined by Unicode and originally designed by Ken Thompson and Rob Pike. The encoding is variable-length and uses 8-bit code units.–>
<title>YOUR PAGE TITLE GOES HERE</title> <!–The <title></title> tags provide a heading that appears in the browser’s title bar, and when the user saves the page as a favorite..–>
<style></style> <!–The <style> tag is used to define style information for an HTML document. Inside the <style> tag element you specify how HTML elements should render in a browser.–>