html body { margin-top: 50px !important; } #top_form { position: fixed; top:0; left:0; width: 100%; margin:0; z-index: 2100000000; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; border-bottom:1px solid #151515; background:#FFC8C8; height:45px; line-height:45px; } #top_form input[name=url] { width: 550px; height: 20px; padding: 5px; font: 13px "Helvetica Neue",Helvetica,Arial,sans-serif; border: 0px none; background: none repeat scroll 0% 0% #FFF; }
. It also provides notes on void elements, HTML validation, character codes, and color codes. Sample HTML code is given for a simple table."> 0 ratings0% found this document useful (0 votes) 16 views4 pagesHTML 01 Basics This document provides an overview of basic HTML tags and their attributes. It includes tags for page structure like <html>, <head>, <body>; media tags like <img> and <a> for images and links; text formatting tags like <b> and <i>; lists tags like <ul> and <ol>; and table tags like <table>, <tr>, and <td>. It also provides notes on void elements, HTML validation, character codes, and color codes. Sample HTML code is given for a simple table. Uploaded byAhmad MarwadCopyright © © All Rights Reserved We take content rights seriously. If you suspect this is your content, claim it here. Available Formats Download as PDF, TXT or read online on Scribd 0 ratings0% found this document useful (0 votes) 16 views4 pagesHTML 01 Basics This document provides an overview of basic HTML tags and their attributes. It includes tags for page structure like <html>, <head>, <body>; media tags like <img> and <a> for images and links; text formatting tags like <b> and <i>; lists tags like <ul> and <ol>; and table tags like <table>, <tr>, and <td>. It also provides notes on void elements, HTML validation, character codes, and color codes. Sample HTML code is given for a simple table. Uploaded byAhmad MarwadCopyright © © All Rights Reserved We take content rights seriously. If you suspect this is your content, claim it here. Available Formats Download as PDF, TXT or read online on Scribd You are on page 1/ 4 BASIC HTML CODINGHTML Tags PAGE STRUCTURE <!DOCTYPE html> html lang=”en|ar” HTML Pagehead Page Headmeta SEO, compatibility, formfactor settings title Title of the Pagestyle Add CSSlink * href=”url” Link an External Sourcerel=”stylesheet|icon” type=”text/css|image/png” script src=”url” Embed a Client-Side Scripttype=”text/javascript” defer body bgcolor=”#aaccff|colorname” Page Body<!-- -–> CommentPAGE CONTENT h1 to h6 align=”left|center|right|justify” Heading p align=”left|center|right|justify” Paragraph hr * Horizontal Rule br * Line Break Non-breaking Space< Full List: Less Than (<) and Greater> ● https://en.wikipedia.org/wiki/List_of_Unicode_c Than (>) symbols © haracters — ● https://www.compart.com/en/unicode/html ● https://www.w3schools.com/html/html_entities .asp TEXT FORMATTING b or strong Bold i or em Italic / emphasize u Underline s Strikethrough font face=”Arial” Font / Typefacesize=”12” (obsolete, in favor color=”#336699|colorname” of CSS) MEDIA & LINKimg * src=”../url” Imagealt=”Alternative Title” Alternative text (SEO, UX) width=”1024|100%” height=”123|25%” title=”Hint” a href=”#|URL|#sectionName” Anchor / Linktarget=”_self|_blank” <a href=”#”>Dead OR link</a> name=”sectionName” ORDERED / UNORDERED LISTSul type="disc|circle|square" Unordered Listol type=”1|I|A|a|i” Ordered Listli List item TABLES table align=”center” Tableborder=”1” cellpadding=”4” cellspacing=”0” bgcolor=”gray” width=”100%|1024px” height=”75%” tr height=”123” Row td colspan=”3” Data / Cellrowspan=”2” valign=”top|middle|bottom” bgcolor=”red” th Table Cell Headingthead Table Header tbody Body tfoot STRUCTURE / LAYOUT span Inline Span (display: inline)div Content Divisionheader Header nav Navigation Links Groupmain Main Content of the Bodysection footer Footer OTHERS sub Subscript sup Superscript NOTES ● * = Singleton tags / void elements○ Trailing / may be removed (<br> instead of <br />) ● HTML Validator (https://validator.w3.org/) ● Search for HTML Character Codes for all other &; values ● Search for HTML Color Codes and Names for all other colors and #RRGGBB values SAMPLES Table <table border="1" width="50%"><tr> <td>Number</td> <td>Name</td> <td>Price</td> <td>Quantity</td> </tr> <tr> <td>1.</td> <td>S23</td> <td>1.200</td> <td>0</td> </tr> <tr> <td>2.</td> <td>iPhone</td> <td>2.500</td> <td>3</td> </tr> <tr> <td>3.</td> <td>Vivo</td> <td>3.300</td> <td>1</td> </tr> </table> You might also like
|