Basic HTML?
I'm starting a website. What are some basica HTML codes that would be useful to me. I have no experiance with HTML, so could you please explain what they do?
Public Comments
- Try this website: http://www.w3schools.com/html/default.asp
- Learn this - try to learn what each line is doing and pay attention to "myID" as it is the link between the DIV tag and the code that styles it. This is Cascading style sheets (CSS) which is a large part of how web pages are built and laid out these days: Select this code and paste it into a new notepad document, and save as test.html to your desktop. Double click the test.html file on your desktop and it will open in your web browser. <style> #myID { margin:0 auto; margin-top:20px; background:#CCCCCC; width:950px; height:99px; text-align:center; } </style> <div id="myID">Hello World</div>
- <BR> = Next line <P> = New paragraph <A HREF="___">___</A> = make a link, fill in the web address in the first ___ and the text of the link in the second ___ <CENTER>___</CENTER> = Text in the ___ will be centered <B>___</B> = Text in the ___ will be bold <H(1, 2, 3, 4,or 5)>___</H> = Header ___ in a size that is determined by the number (pick one), the smaller the bigger At the top of the page put <HTML> and at the bottom </HTML> The Yahoo! Geocities HTML starts you off with the essentials, it's a good one to use.
- have a look here, it's aimed at kids but it's really good: http://www.lissaexplains.com or here: http://www.make-a-web-site.com/making1.html#GS
- Well to save you time and trouble I suggest you look into both HTML and CSS. CSS will save you time in styling your website and make it look a lot better. If you truly want learn then I suggest you buy this book http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?z=y&EAN=9780596101978&itm=1 The book covers both HTML and CSS, it also has plenty of pictures to help you better understand what they are covering. Here are some website that are useful as well. HTML (Hypertext Markup Language) http://www.w3schools.com/html/default.asp CSS (Cascading Style Sheets) http://www.w3schools.com/css/default.asp http://www.utexas.edu/learn/css/ The HTML tags that I find myself using the most are: <h1>heading</h1> <h2>heading (its a bit smaller)</h2> <h3>heading (even smaller)</h3> <h4>heading (smaller than that)</h4> <h5>heading (smaller than the last one)</h5> <h6>heading (smallest)</h6> <p>Paragraph</p> (The image tag) <img src="URL of image" alt="discription of image" /> (The A tag, it is used for making links and bookmarking a certain section of the website) <a href="Web address"> Text or Image here </a> (All this is used to make a table) <table> <tr> (table row) <th> (table heading) </th> <td> (table data) </td> </tr> (end of table row) </table> (Division, with this you can divide you web page into different sections for design purpose.. I use CSS along with this to add more detail such as background color, background image, size, borders style, etc. the part (id="xxx") is used to identify one div from another in the CSS.) <div id="xxx"> content </div> <ul> (Unordered list, basically this is how you make bullet points) <li> (listed item) </li> </ul> ( Closing tag for unordered list) <ol> (Ordered list, this one makes a numbered list.) <li> (listed item) </li> </ol> (Closing tag for ordered list) <!--Note goes here--> (This will not show up on your website it is used to help you keep things organized and leave little important notes that you don't want to forget.)
Powered by Yahoo! Answers