Html–деген не? Html не істейді?
Кодтап бастамай тұрып оқып алыңыз!
Html-бағдарламалау тілі емес, біл гипермәтіндік құжаттарды белгілеу, басқаша айтқанда, сіздің мәтіндеріңіз, суреттеріңіз, кестелеріңіз т.б жасауға арналған. 2 + 2 тең қанша болады деген логикалық функция онда жоқ, тек 2 + 2 = 4 болады деген функцияны жазу оңай.
Енді командалар туралы – олар дескрипторлар деп аталады, бірақ көбінесе тегтер деп атайды. Алғашқы жасаған бетімізге оралайық. Біз онда осылай енгізген едік:
<html>
<head>
<title>
Менің алғашқы веб-бетім
</title>
</head>
<body>Сәлем әлем!!!
<br>
Менің есімім Нұржан, менің алғашқы веб-бетім</body>
</html>
<…> Арасына жазылғанды тегтер деп атайды, олар веб-бетте көрінбейді, тек олардың қызметі ғана білінеді. </…> Тегтер осылай жабылады.
Сонымен біз не жаздық, браузер оны қалай оқиды?
<html> – Құжаттың басы…
<head> – Ағылшын сөздігін ақтарсақ бас-деген мағынаны білдіреді, мұнда құжат туралы негізгі ақпарат сақталады.
<title>
Менің алғашқы веб-бетім
</title> // тағы да сөздікке, атау? Бұл беттің шапкасының атауы
</head> – оны жабуға да болады, ары қарай…
<body> – сіздің веб-бетіңізде не дизайн көрінеді осының ішіне жазасыз.
Сәлем әлем!!!
<br> – арнайы абзац жасау үшін қолданылады.
Менің есімім Нұржан, менің алғашқы веб-бетім
</body>- Бұл не? Басқа көрсетілмесін деген бұйрық осымен аяқталды!
</html> – бұл соңы…
Біздің бет туралы қысқаша ғана түсіндірілді. Көріп отырғаныңыздай дизайнда қателік орын алса, ол жұмыс істемейді немесе дизайн бұзылады.
Бұзылмас үшін оны өз талаптарына байланысты жазу керек. Қысқаша тоқтала кетсек:
- Сіз байқағаныңыздай, әр ашылған тег барда, жабылатын тег болуы керек. Бұндай жағдай кейбір тектерге қажет болмауы мүмкін. Мәселен: <br>. Ия, ол келесі абзацқа жылжытады, ол жабылуды қажет етпейді. Практика жүзінде бетке тағы да текст жазып көріңіз (өзіңіз қалаған текст.) .Блокнотта сақтауды және браузерді жаңартуды ұмытпаңыз. Сіз байқағаныңыздай екі текст бір қатарда орналасқан. Абзац қажет, сіз оған <br>-қолданасыз, тег осындай негізде жазылады, жабылуының қажеті жоқ…
<html>– Документтің басталуы
<head>– Көмекші тектердің басталуы
</head>– Көмекші тегтерді енгізетін орынның жабылуы.
<body>– Сізге керекті дизайнды сызатын орынның бастаулы
</body>– Сізге керекті дизайнды сызатын орынның жабылуы
</html>– Документтің жабылуы…
Бұл тек міндетті түрде жазылады, әрбір бетті ашқанда жазылуы керек, тек осындай бастамамен. Барлығын бірден үйреніп алуға тырыспаңыз.
Ашылатын тег <…> және жабылатын тег </…>-осындай типте жазылады. Басқа тегтерді бір тегтің ішіне салуға болады, қарапайым қораптар тәрізді.
<Тег «үлкен қорап»>
<Тег «орташа қорап»>
<Тег «кіші қорап»>
мәтін
</Тег «кіші қорап» >
</Тег «орташа қорап» >
</Тег «үлкен қорап»>
Барлығы жақсы, ал егер сіз осылай жазған болсаңыз.
<Тег «үлкен қорап»>
<Тег «орташа қорап»>
<Тег «кіші қорап»>
содержание
</Тег «үлкен қорап»>
</Тег «кіші қорап»>
</Тег «орташа қорап»>
Сосын сіз қателлікке ие боласыз. Ортаңғы және кіші үлкенінде, бірақ жабылар кезде ол ең бірінші жабылады, бұлар шашыраңқы орналасқан, тіпті адамға браузер туралы не айту керектігін елестету қиынға соғады. Кодты ақырындап қайта баптаңыз, әйтпесе сіздің код мүлдем жұмыс жасамайды.
Міне, қарапайым мәтін жазуды үйрендік келесі сабақта мен онымен не істеуге болатыны туралы айтамын.
Пайдалы кеңестер:
- Сіз беттерді жасағанда, оны дискіңіздегі кез-келген орыннан қалта(папка) ашып, файлдарды сонда сақтаңыз.
- Оларға мағыналы атау беру. Мәселен: login.html, register.html-осы тәрізді. Олай жазбаған болсаңыз шатасуларға алып келеді. Бұл кезеңде бұл кеңес практикалық болып көрінбейді, бірақ болашақта маңызды болады, елестетіңізші бір сайт жазып жатырсыз 50-ден астам html-файлдар, сіз оларға сілтеме жасауды ұмытпаңыз, ол үшін атау арқылы ажыратып табасыз.
Кодты жазу кезінде сізге бәрін көрсетілгендей жазуды ұсынамын, яғни баспалдақ арқылы. Уақыт өте келе сіз не оқу керектігін түсінесіз. Төмендегідей:
<html>
<head>
<title>
Менің алғашқы веб-бетім
</title>
</head>
<body>Сәлем әлем!!!
<br>
Менің есімім Нұржан, менің алғашқы веб-бетім</body>
</html>
Демек, осылай жазылғаннан қарағанда түсінікті:
<html>
<head>
<title> Нұржан, бұл менің алғашқы веб-бетім </title>
</head>
<body>
Сәлем әлем!!!
<br>
Менің есімім Нұржан, бұл менің алғашқы веб-бетім!</body>
</html>
Және бұдан да:
Бұл әдетке айналғанымен, түсінікті етіп жазған дұрыс.
43 comments
п»їbest mexican online pharmacies
http://cmqpharma.com/# reputable mexican pharmacies online
mexican mail order pharmacies
reputable mexican pharmacies online: online mexican pharmacy – mexican pharmacy
hey there and thank you for your information – I have certainly
picked up anything new from right here. I did however expertise
several technical issues using this site, as
I experienced to reload the web site a lot of times previous to I could
get it to load properly. I had been wondering if your hosting is
OK? Not that I’m complaining, but slow loading instances
times will sometimes affect your placement in google and could damage
your high-quality score if advertising and marketing with Adwords.
Anyway I am adding this RSS to my email and can look out for
a lot more of your respective exciting content. Ensure that you update
this again very soon.. Escape room lista
Very interesting details you have noted, thanks for posting..
canadian pharmacy 1 internet online drugstore safe online pharmacies in canada safe canadian pharmacy
reputable indian online pharmacy: world pharmacy india – reputable indian online pharmacy
https://foruspharma.com/# mexican border pharmacies shipping to usa
canadian pharmacies online: maple leaf pharmacy in canada – canadian pharmacy no scripts
mexico pharmacies prescription drugs mexican border pharmacies shipping to usa pharmacies in mexico that ship to usa
buy medicines online in india: online pharmacy india – online shopping pharmacy india
buying from online mexican pharmacy: mexican drugstore online – buying from online mexican pharmacy
http://canadapharmast.com/# online canadian pharmacy reviews
buy prescription drugs from canada cheap: canadian pharmacy king – safe canadian pharmacy
canadian pharmacy world canada discount pharmacy canadianpharmacyworld
safe reliable canadian pharmacy: canada drug pharmacy – maple leaf pharmacy in canada
vipps approved canadian online pharmacy: reputable canadian pharmacy – canadian pharmacy cheap
https://canadapharmast.com/# legal to buy prescription drugs from canada
indian pharmacy online: pharmacy website india – india pharmacy mail order
п»їlegitimate online pharmacies india indian pharmacy paypal buy prescription drugs from india
canadian drugs pharmacy: canadian pharmacy no scripts – online pharmacy canada
my canadian pharmacy: canada cloud pharmacy – canadian family pharmacy
I couldn’t resist commenting. Very well written.
mexican rx online: best online pharmacies in mexico – pharmacies in mexico that ship to usa
http://doxycyclinedelivery.pro/# buying doxycycline online in usa
doxycycline 1000mg best buy: buy doxycycline online canada – how to order doxycycline
http://paxloviddelivery.pro/# п»їpaxlovid
Aw, this was an exceptionally nice post. Taking the time and actual effort to make a superb article… but what can I say… I procrastinate a whole lot and never seem to get nearly anything done.
http://clomiddelivery.pro/# order generic clomid without insurance
doxycycline for sale over the counter [url=http://doxycyclinedelivery.pro/#]doxycycline 1mg[/url] doxycycline 100mg tablets nz
can i order clomid without prescription: buy generic clomid without rx – where to buy generic clomid prices
https://doxycyclinedelivery.pro/# buy doxycycline 100mg online uk
I used to be able to find good advice from your blog articles.
http://paxloviddelivery.pro/# Paxlovid buy online
buy cipro without rx: buy cipro online – ciprofloxacin mail online
http://ciprodelivery.pro/# purchase cipro
https://amoxildelivery.pro/# generic amoxicillin cost
cipro online no prescription in the usa: buy generic ciprofloxacin – buy cipro cheap
https://doxycyclinedelivery.pro/# doxycycline over the counter canada
amoxicillin 500mg cost: amoxicillin tablet 500mg – where can i get amoxicillin
https://paxloviddelivery.pro/# buy paxlovid online
Nice post. I learn something new and challenging on blogs I stumbleupon everyday. It’s always useful to read articles from other authors and practice a little something from other sites.
http://ciprodelivery.pro/# where can i buy cipro online
amoxicillin 500 mg brand name: where can i buy amoxicillin online – amoxicillin online no prescription
amoxicillin without prescription: amoxicillin discount – amoxicillin generic