Define the basic structure of html file




















The following version of the sample code is not nested correctly. Take a moment to look and find the nesting errors here. Do you have any questions about any of these concepts? Leave your questions in the comments! This post will be updated with links to the other posts in the series as they are published. This line of him made me confused and I would appreciate if you answer this one. I wanna know if he is right or is there anything more to the story?

Dear Reader, regarding the basic HTML page structure I would have expected, that the little example for head and body would have been rendered by a browser as. The head section head element. The body section body element. The main container: html element After having placed the DTD right at the top of the document, it's time to create the main container: a place where the whole document except the DTD will fall into. Document's elements The document's head The head section is a container for metadata about the document.

The document's title : describes briefly the subject treated in the document. This is a required item and is inserted with the title element. Style declarations : groups style definitions used to set presentational attributes for the elements in the document. It's inserted with the style element. Client-side scripts : inserts programs that provide functionality and interactivity. It's declared with the script element.

Meta statements : define custom attributes and values. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Curabitur dapibus, enim sit amet elit pharetra tincidunt feugiat nist imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Cum soclis natoque penatibus et manis dis parturient montes, nascetur ridiculus mus.

In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est. Nunc diam velit, adipscing ut tristique vitae sagittis vel odio. Maecenas convallis ullamcorper ultricied. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, is fringille sem nunc vet mi. All rights reversed. Ideally this shouldn't be nested within other elements. Secondary links, etc. Scared, but determined to protect his friends, he raised his wand and prepared to do battle, hoping that his distress call had made it through.

He read it hazily and sighed; "better get back to work then", he mused. Bear in mind that you'll have a few elements common to most if not all pages — such as the navigation menu, and the footer content. If your site is for a business, for example, it's a good idea to have your contact information available in the footer on each page.

Note down what you want to have common to every page. Next, draw a rough sketch of what you might want the structure of each page to look like it might look like our simple website above.

Note what each block is going to be. Now, brainstorm all the other not common to every page content you want to have on your website — write a big list down. Next, try to sort all these content items into groups, to give you an idea of what parts might live together on different pages.

This is very similar to a technique called Card sorting. Now try to sketch a rough sitemap — have a bubble for each page on your site, and draw lines to show the typical workflow between pages. The homepage will probably be in the center, and link to most if not all of the others; most of the pages in a small site should be available from the main navigation, although there are exceptions.

You might also want to include notes about how things might be presented. Note: Save your work somewhere; you might need it later on. Complete beginners start here! Getting started with the Web Getting started with the Web overview Installing basic software What will your website look like? A first splash into JavaScript What went wrong?



0コメント

  • 1000 / 1000