MyBB Community Forums

Full Version: can anyone tell me all the basic tags in html
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
can anyone tell me all the basic tags in html
<snip>
(2009-09-19, 12:39 PM)bubu24 Wrote: [ -> ]can anyone tell me all the basic tags in html
<snip>
Check out http://w3schools.com/
Like tripler said you should check out w3schools they have the codes that you need to look up.
Basic codes.

<b></b> = Bold
<i></i> = Italics
<u></u> = Underline
<img src="URL HERE"> = Image
<a href="URL HERE">TEXT</a> = Text Link
<video src="URL HERE"> your browser does not support the video tag </video> = Video (HTML5)
<br> = Brake
<hr> = Horizontal Line

jhonmartin's href tag is wrong. it is <a href="URL"></a>

If you need anymore help PM me Big Grin
The img one is supposed to be

<img src="link" alt="" />
The <b>, <i>, <u>, <br>, and <hr> are archaic now.

You should use <strong>, <em>, do not use tags to underline, and is better if you don't underline something unless it's a link, <br /> and <hr />
(2009-10-01, 02:01 PM)FullMetalBabe Wrote: [ -> ]The img one is supposed to be

<img src="link" alt="" />

Sorry you're wrong. Alt is a attribute. there is also attributes for image code like
height="" 
width=""
align=""
border=""

and theres a few more but I'm not sure of what they do so I won't post them/




(2009-10-01, 11:31 PM)combus Wrote: [ -> ]The <b>, <i>, <u>, <br>, and <hr> are archaic now.

You should use <strong>, <em>, do not use tags to underline, and is better if you don't underline something unless it's a link, <br /> and <hr />

No, they're the basic ones to remember. I use them just because I rather them.
(2009-10-02, 01:13 AM)Plug-in Wrote: [ -> ]
(2009-10-01, 02:01 PM)FullMetalBabe Wrote: [ -> ]The img one is supposed to be

<img src="link" alt="" />

Sorry you're wrong. Alt is a attribute. there is also attributes for image code like
height="" 
width=""
align=""
border=""

and theres a few more but I'm not sure of what they do so I won't post them/
...
...

If you had any consideration for blind people navigating on the web you would never have mention this.

The Alt attribute is mandatory to the <img> tag on any well designed web page. You will even fail validation without it.

So i understand why FullMetalBabe included it in the <img> tag as any good coder would have.
I know that, but the point is you don't need to it to use the img tag as it is optional.
I am sorry the img tag "alt" attribute is NOT optional.

As you can read at W3C school or validation application :

"... in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.""

Required do not mean optional. It is as required as the "src" attribute.

See W3c description of the Tag :

13.2 Including an image: the IMG element
<!-- To avoid problems with text-only UAs as well as 
   to make image content understandable and navigable 
   to users of non-visual UAs, you need to provide
   a description with ALT, and avoid server-side image maps -->
<!ELEMENT IMG - O EMPTY                -- Embedded image -->
<!ATTLIST IMG
  %attrs;                              -- %coreattrs, %i18n, %events --
  src         %URI;          #REQUIRED -- URI of image to embed --
  alt         %Text;         #REQUIRED -- short description --
  longdesc    %URI;          #IMPLIED  -- link to long description
                                          (complements alt) --
  name        CDATA          #IMPLIED  -- name of image for scripting --
  height      %Length;       #IMPLIED  -- override height --
  width       %Length;       #IMPLIED  -- override width --
  usemap      %URI;          #IMPLIED  -- use client-side image map --
  ismap       (ismap)        #IMPLIED  -- use server-side image map --
  >

Without the "alt" attribute in each <img> tag you would not be able to pass the W3c validator analysis.
Pages: 1 2