Log In · Register

 
basic html, can somebody teach me about html....
hottiebheibi
post Mar 24 2006, 06:45 AM
Post #1


][»hottiebheibi«][
***

Group: Member
Posts: 44
Joined: Aug 2005
Member No: 220,763



first and foremost, im a med student not a computer student, so please bear with me cry.gif ... eneweiz, i want to learn all the basics of html... i know what the scripts are *i have all the list already* now, my problem is editing / changing the styles *that's what i call it* the html.. for example:::

if the code is <div id="bheibi"> it will be #bheibi *right? and <div class="sweet" it will be .sweet right? but, what if the codes are:

<img id="pic">
<img class="pic2">
<p id="yes">
<table id="pink">
<a class="blue">
<ul id="black">

and

<div id="xanga">
<h2> XANGA BLOG </h2>

<div class="buttons">
<ul>
<li>

<table id="red">
<tr>
<td>

<ul id="purple">
<li class="violet">
<img class="color">

how do i edit this things???
 
 
Start new topic
Replies
talcumpowder
post Mar 24 2006, 09:51 AM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Same way. Doesn't matter if it's a table, image, list or paragraph. All id's must be unique. Meaning you don't have a <img id="blue" scr="" alt=""> and a <div id="blue"> in the same page. Class, however, can be applied to multiple things. You can have a <img class="blue" scr="" alt=""> and a <div class="blue"> in the same page... Not that you would want to.
But, to simplify coding, your class/id should reflect what it contains or does.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: