Dasar-dasar Web HTML & CSS
Eli Munawaroh, S.T
Perbedaan Web Statis dan Dinamis
Static | Dynamic |
Prebuilt content is same every time the page is loaded. | Content is generated quickly and changes regularly. |
It uses the HTML code for developing a website. | It uses the server side languages such as PHP,SERVLET, JSP, and ASP.NET etc. for developing a website. |
It sends exactly the same response for every request. | It may generate different HTML for each of the request. |
The content is only changed when someone publishes and updates the file (sends it to the web server). | The page contains "server-side" code which allows the server to generate the unique content when the page is loaded. |
Flexibility is the main advantage of static website. | Content Management System (CMS) is the main advantage of dynamic website. |
Web Statis dan Dynamis
Hyper Text Markup Language (HTML)
Element HTML
Contoh Tag HTML
Contoh
Headings
Paragraph
Table
List
Tipe list
Image
Link / Hyperlink
Syntax: <a href="url">link text</a>
element <a> untuk mendefinisikan link
atribut href untuk mendefinisikan alamat link (URL)
atribut target untuk mendefinisikan bagaimana cara membuka link
elemen <img> untuk menambahkan image sebagai link
Atribut target Link
Form
Input
Cascading Style Sheet (CSS)
body {� background-color: lightblue;�}��h1 {� color: white;� text-align: center;�}��p {� font-family: verdana;� font-size: 20px;�}
Tag HTML
HTML + CSS
Header
Lef tside (Link)
Right side
Body/ content
Footer
Syntax
Selector
Selector CSS digunakan untuk memilih elemen HTML.
Selector dibagi menjadi lima kategori:
Simple Selector
Universal Selector
Grouping Selector
Cara Menyematkan CSS
External | Internal | Inline |
| | |
Templated.co
References
Terima Kasih