Monday, December 12, 2011

How do you obtain the html codes for any websites?

I saw a guy doing it with some shortcut on the keyboard and a list of codes just popped in! I'm learning HTML right now and i wanted to know how some websites work.How do you obtain the html codes for any websites?
view the source of the page from menuHow do you obtain the html codes for any websites?
html code can be obtain from source of the page
right click and 'view source' or 'view page source' whichever it says
view source
in internet explorer, go to the menu and click page, and then click view source
you can right click any page and bring up the page source but you cant edit it thats illigal
on Firefox: go to the website and Ctrl + U

on IE : on the menu bar: View %26gt;%26gt; Source.



HTH
You probably saw the guy using the ';view source'; command. In Internet Explorer this is under the menu View %26gt; Source. In FireFox, it's under View %26gt; Page Source (with a keyboard shortcut of Ctrl-U).



Realize that for modern websites, the page source won't tell you everything you need to know about how it is constructed. Much of the layout and presentation information is probably stored in another file called a ';stylesheet';. Have a look near the top of the HTML source and see if you can find any ';link'; tags that point to files ending in ';.css';. Download and study those files, too. Google ';cascading style sheets'; to learn how they work.
Just right click(somewhere in the window) while on the page and in the menu select ';show source code';.
It is simple just open the website in the Firefox and then press '; ctrl+u '; it will open a source code page in front of you.
its a good question, but remember, most sites are in multiple languages, which means they use javascript, php, css, html (or xhtml [xhtml is proper html]) they may also use dhtml (which is a combination o javascript and css), they may have used a database which completly hides some info away from peple using the site.



There is an endless amount of possible coding language they could of used in their file, especially when the file is saved as ';.php';. and good programmers they link to files that contain code that is repetitive in almost every single page, so you may be missing some of the code. theres alot more then just html that you need to understand to be able to understand how sites work.



if you go to http://www.html.net/ it explains very clearly what each thing does. they also have a tutorial for css. I would suggest going there as I did and i never had to re read anything. also dont start learning css until you are strong with html.



The site in my source is the site i use now for studying web coding. Thats the site that made me realise how many languages there really were out there.



Also http://www.zymic.com is a great free web hosting site. it comes complete with a database, a subdomain (a free domain but you are rquired to choose a standardized domain. eg. google in www.google.ca is the domain.). zymic allows you to upload files from your computer throught ';ftp';, their file manager, or by creating ur documents right on theri site.



They also have forums, where many helpful people are glad to answer your questions.



Hope all of this helps you get a mere glimpse of the languages out there.

No comments:

Post a Comment